[19049] | 1 | #Test Name: SquareSheetShelfSteaEnthalpyHO
|
---|
[21408] | 2 | import numpy as np
|
---|
[13681] | 3 | from model import *
|
---|
[21408] | 4 | from socket import gethostname
|
---|
| 5 |
|
---|
[13681] | 6 | from triangle import *
|
---|
| 7 | from setmask import *
|
---|
| 8 | from parameterize import *
|
---|
| 9 | from setflowequation import *
|
---|
| 10 | from solve import *
|
---|
| 11 |
|
---|
[23793] | 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.)
|
---|
| 16 | md = setflowequation(md, 'HO', 'all')
|
---|
| 17 | md.cluster = generic('name', gethostname(), 'np', 3)
|
---|
| 18 | md.timestepping.time_step = 0.
|
---|
| 19 | md.thermal.isenthalpy = 1
|
---|
| 20 | md.initialization.waterfraction = np.zeros((md.mesh.numberofvertices))
|
---|
| 21 | md.initialization.watercolumn = np.zeros((md.mesh.numberofvertices))
|
---|
| 22 | md = solve(md, 'Steadystate')
|
---|
[13681] | 23 |
|
---|
| 24 | #Fields and tolerances to track changes
|
---|
[23793] | 25 | field_names = ['Vx', 'Vy', 'Vz', 'Vel', 'Pressure', 'Temperature', 'Waterfraction', 'Enthalpy']
|
---|
[28089] | 26 | field_tolerances = [3e-09, 1e-09, 1e-09, 1e-09, 1e-13, 2e-10, 5e-10, 3e-9]
|
---|
[23793] | 27 | field_values = [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]
|
---|