BOUT++ 网格产生阅读

2020-10-11  本文已影响0人  锅炉工的自我修养

创建case


网格


2. Hands-on exercises: transport code

generate the grid file


获取输运系数的一种方式

基于实验测量的内边界等离子体剖面,有效粒子热输运可以从输运方程获得(不考虑漂移)with sources from inner radial boundary


geometry used in the simulation


稳态解剖面


Generate grid-file for Bout++


Important

阅读源码ee

TOKAMAK GRIDS FOR BOUT++

磁平衡装换

pdb2bout, "intermediate_file.pdb",output="grid.pdb" [,/smooth]

Grid generation

从EFIT 的磁平衡生成网格,提供内BOUT++使用

hypnotoad is a graphical interface in IDL to these routines:

IDL> hypnotoad

Equilibrium generation

limiter???????


Intermediate PDB file format

必须的文件

If these are not present they can be inferred from other quantities or entered manually.


Tokamak grid generator in IDL

B.D.Dudson

1. Introduction

对于更加复杂的网格生成器,例如CARRE 网格生成器for B2, UEDGE 也可以生成使用与BOUT++的输入。


Using the Hypnotoad(飞向未来的催眠蛤蟆)

IDL> hypnotoad

出现如图的图形界面


image.png

Read G-EQDSK


image.png

不尝试识别边界


image.png

"Strict boundaries",决定格点是否超过边界。如果关闭偏滤器腿会在边界停止,但是径向网格允许穿过边界

尽管网格生成是自动,一些网格需要用户交互


create_mesh.pro using DCTs

计算的压强与压强的对比
image.png
image.png
image.png

使用网格生成器


4. DCT

image.png

5. 寻找关键点


6. 区域划分


7. separatrices


reading the source code

种下一棵树最好的时间是10年前,其次就是当下。

project:tokamak_grids

README

grid generation

pyGridGen

README

本module包含的文件夹产生一个workflow,为BOUT++产生输入网格文件。改脚本是IDL脚本的延伸翻译 in ../gridgen,功能与../gridgen/test.pro类似


dependencie:

../../../tools/pylib (include in PYTHONPATH)
matplotlib/pylab
numpy
scipy
sys
bunch   https://pypi.python.org/pypi/bunch
mayavi2/mlab
itertools
cPickle
netCDF4
time
copy
ode.lsode  http://web.engr.illinois.edu/~mrgates2/ode/

*Initial development on a MacOS X using Enthought Canopy 1.1 python installation. 
Most packages should be there by default except maybe mayavi2, ode.lsode and bunch.


workflow.py(main function)

基本流程

上一篇 下一篇

猜你喜欢

热点阅读