text
stringlengths 0
110
|
|---|
variable BZ equal 1.380649E-23
|
variable PI equal 3.1415926536
|
variable molecular_mass equal 6.63E-26
|
variable molecular_diameter equal 4.17E-10
|
variable gamma equal 1.666666667
|
variable R equal ${BZ}/${molecular_mass}
|
variable L equal 1.0
|
variable xmin equal -5.0
|
variable xmax equal 6.0
|
variable ymin equal -5.0
|
variable ymax equal 5.0
|
variable Kn equal 0.9199999999999999
|
variable Ma equal 2.0
|
variable To equal 273.0
|
variable Tb equal 273.0
|
variable theta equal 0.0
|
variable mfp equal ${Kn}*${L}
|
variable cpmfp equal 4
|
variable nden equal 1.0/sqrt(2.0)/${PI}/${molecular_diameter}/${molecular_diameter}/(${mfp}/${cpmfp}*${Kn})
|
variable sos equal sqrt(${gamma}*${R}*${To})
|
variable vo equal ${Ma}*${sos}
|
variable vx equal ${vo}*cos(${theta}*2*PI/360)
|
variable vy equal ${vo}*sin(${theta}*2*PI/360)
|
variable ppc equal 30
|
variable xncells equal (${xmax}-${xmin})/${mfp}*${cpmfp}
|
variable yncells equal (${ymax}-${ymin})/${mfp}*${cpmfp}
|
variable Fnum equal ${nden}*(${xmax}-${xmin})*(${ymax}-${ymin})/${ppc}/${xncells}/${yncells}
|
variable tstep equal (-${xmin}+${xmax})/${vx}/${xncells}/10/4
|
variable nave equal 10000
|
variable noutput equal 300000
|
clear
|
shell mkdir output
|
shell mkdir grid
|
shell mkdir surf
|
seed 7
|
dimension 2
|
global nrho ${nden}
|
global fnum ${Fnum}
|
timestep ${tstep}
|
global gridcut 1.0 particle/reorder 100 comm/sort yes
|
region 1 cylinder z 0.0 0.0 3.50 -0.5 0.5
|
region 2 cylinder z 0.0 0.0 2.00 -0.5 0.5
|
region 3 cylinder z 0.0 0.0 0.80 -0.5 0.5
|
boundary o o p
|
create_box ${xmin} ${xmax} ${ymin} ${ymax} -0.5 0.5
|
create_grid ${xncells} ${yncells} 1 levels 4 region 2 1 2 2 1 region 3 2 2 2 1 region 4 3 2 2 1 clump xyz
|
balance_grid rcb cell
|
species gas.species Ar
|
mixture air Ar frac 1.0
|
mixture air Ar vstream ${vx} ${vy} 0.0 temp ${To}
|
collide vss air gas.vhs
|
collide_modify vremax 100 yes remain no nearcp yes 10
|
read_surf cylinder.surf
|
surf_collide 1 diffuse 273.0 1.0
|
surf_modify all collide 1
|
fix in emit/face air xlo ylo yhi
|
balance_grid rcb cell
|
create_particles air n 0
|
stats 10000
|
stats_style step cpu np nattempt ncoll nscoll npave nscollave
|
run 200000
|
compute 1 grid all air n nrho massrho u v w
|
compute 2 grid all air trot
|
compute 3 tvib/grid all air
|
compute 4 thermal/grid all air press temp
|
fix 1 ave/grid all 1 ${nave} ${nave} c_1[*] c_4[*] c_2[*] c_3[*] ave running
|
dump 1 grid all ${noutput} output/grid.*.dat id xc yc f_1[*]
|
dump_modify 1 format float %12.5g
|
compute 5 surf all air n press px py shx shy fx fy etot erot evib
|
fix 2 ave/surf all 1 ${nave} ${nave} c_5[*] ave running
|
dump 2 surf all ${noutput} output/surf.*.dat id v1x v1y v2x v2y f_2[*]
|
dump_modify 2 format float %12.5g
|
compute 6 lambda/grid f_1[2] f_1[8] Ar kx
|
dump 3 grid all ${noutput} output/lambdakn.*.dat id xc yc c_6[*]
|
dump_modify 3 format float %12.5g
|
run 100000
|
write_grid grid/final-grid.dat
|
write_surf surf/geom.surf
|
dimension 2
|
create_box -5.0 6.0 -5.0 5.0 -0.5 0.5
|
read_grid grid/final-grid.dat
|
variable BZ equal 1.380649E-23
|
variable PI equal 3.1415926536
|
variable molecular_mass equal 6.63E-26
|
variable molecular_diameter equal 4.17E-10
|
variable gamma equal 1.666666667
|
variable R equal ${BZ}/${molecular_mass}
|
variable L equal 1.0
|
variable xmin equal -5.0
|
variable xmax equal 6.0
|
variable ymin equal -5.0
|
variable ymax equal 5.0
|
variable Kn equal 0.9199999999999999
|
variable Ma equal 2.1
|
variable To equal 273.0
|
variable Tb equal 273.0
|
variable theta equal 0.0
|
variable mfp equal ${Kn}*${L}
|
variable cpmfp equal 4
|
variable nden equal 1.0/sqrt(2.0)/${PI}/${molecular_diameter}/${molecular_diameter}/(${mfp}/${cpmfp}*${Kn})
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.