1 | #Test Name: SquareSheetShelfSteaEnthalpyHO
|
---|
2 | import numpy as np
|
---|
3 | from model import *
|
---|
4 | from socket import gethostname
|
---|
5 |
|
---|
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.)
|
---|
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')
|
---|
23 |
|
---|
24 | #Fields and tolerances to track changes
|
---|
25 | field_names = ['Vx', 'Vy', 'Vz', 'Vel', 'Pressure', 'Temperature', 'Waterfraction', 'Enthalpy']
|
---|
26 | field_tolerances = [3e-09, 1e-09, 1e-09, 1e-09, 1e-13, 1e-10, 4e-10, 3e-9]
|
---|
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]
|
---|