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