[19049] | 1 | #Test Name: SquareSheetShelfSteaEnthalpyHO
|
---|
[13681] | 2 | import numpy
|
---|
| 3 | from model import *
|
---|
| 4 | from EnumDefinitions import *
|
---|
| 5 | from MatlabFuncs import *
|
---|
| 6 | from triangle import *
|
---|
| 7 | from setmask import *
|
---|
| 8 | from parameterize import *
|
---|
| 9 | from setflowequation import *
|
---|
| 10 | from solve import *
|
---|
| 11 |
|
---|
| 12 | md=triangle(model(),'../Exp/Square.exp',150000.)
|
---|
| 13 | md=setmask(md,'../Exp/SquareShelf.exp','')
|
---|
| 14 | md=parameterize(md,'../Par/SquareSheetShelf.py')
|
---|
| 15 | md.extrude(3,2.)
|
---|
[15565] | 16 | md=setflowequation(md,'HO','all')
|
---|
[13681] | 17 | md.cluster=generic('name',oshostname(),'np',3)
|
---|
| 18 | md.timestepping.time_step=0.
|
---|
| 19 | md.thermal.isenthalpy=1
|
---|
| 20 | md.initialization.waterfraction=numpy.zeros((md.mesh.numberofvertices,1))
|
---|
[16041] | 21 | md.initialization.watercolumn=numpy.zeros((md.mesh.numberofvertices,1))
|
---|
[21049] | 22 | md=solve(md,'SteadystateSolution')
|
---|
[13681] | 23 |
|
---|
| 24 | #Fields and tolerances to track changes
|
---|
[18767] | 25 | field_names =['Vx','Vy','Vz','Vel','Pressure','Temperature','Waterfraction','Enthalpy']
|
---|
[19868] | 26 | field_tolerances=[3e-09,1e-09,1e-09,1e-09,1e-13,1e-10,3.2e-10,3e-9]
|
---|
[13681] | 27 | field_values=[\
|
---|
[13967] | 28 | md.results.SteadystateSolution.Vx,\
|
---|
| 29 | md.results.SteadystateSolution.Vy,\
|
---|
| 30 | md.results.SteadystateSolution.Vz,\
|
---|
| 31 | md.results.SteadystateSolution.Vel,\
|
---|
| 32 | md.results.SteadystateSolution.Pressure,\
|
---|
| 33 | md.results.SteadystateSolution.Temperature,\
|
---|
| 34 | md.results.SteadystateSolution.Waterfraction,\
|
---|
| 35 | md.results.SteadystateSolution.Enthalpy,\
|
---|
[13681] | 36 | ]
|
---|