| 1 | md=triangle(model(),'../Exp/Square.exp',150000.);
|
|---|
| 2 | md=setmask(md,'../Exp/SquareShelf.exp','');
|
|---|
| 3 | md=parameterize(md,'../Par/SquareSheetShelf.par');
|
|---|
| 4 | md=extrude(md,3,2.);
|
|---|
| 5 | md=setflowequation(md,'HO','all');
|
|---|
| 6 | md.cluster=generic('name',oshostname(),'np',3);
|
|---|
| 7 | md.timestepping.time_step=0.;
|
|---|
| 8 | md.thermal.isenthalpy=1;
|
|---|
| 9 | md.initialization.waterfraction=zeros(md.mesh.numberofvertices,1);
|
|---|
| 10 | md.initialization.watercolumn=zeros(md.mesh.numberofvertices,1);
|
|---|
| 11 | md=solve(md,SteadystateSolutionEnum());
|
|---|
| 12 |
|
|---|
| 13 | %Fields and tolerances to track changes
|
|---|
| 14 | field_names ={'Vx','Vy','Vz','Vel','Pressure','Temperature','Water fraction','Enthalpy'};
|
|---|
| 15 | field_tolerances={2e-09,1e-09,1e-09,1e-09,1e-13,1e-10,1e-10,1e-10};
|
|---|
| 16 | field_values={...
|
|---|
| 17 | (md.results.SteadystateSolution.Vx),...
|
|---|
| 18 | (md.results.SteadystateSolution.Vy),...
|
|---|
| 19 | (md.results.SteadystateSolution.Vz),...
|
|---|
| 20 | (md.results.SteadystateSolution.Vel),...
|
|---|
| 21 | (md.results.SteadystateSolution.Pressure),...
|
|---|
| 22 | (md.results.SteadystateSolution.Temperature),...
|
|---|
| 23 | (md.results.SteadystateSolution.Waterfraction),...
|
|---|
| 24 | (md.results.SteadystateSolution.Enthalpy),...
|
|---|
| 25 | };
|
|---|