Boundary Condition Examples

Some examples of typical boundary conditions.

Marine boundary

!! water pressure at glacier front
$ function waterpressure(Z) {\
  rhow = 1025.0;\
  waterline = 0.0;\
  G = 9.81;\
  _waterpressure = 0.0;\
  if (Z>waterline) {\
       _waterpressure = 0.0;\
  }else {\
       _waterpressure = 1.0 * rhow * G * (waterline - Z);\
  }\
}

Boundary Condition 4
  Name = "sides"
....
 External Pressure = Variable Coordinate 3 !we are in MPa units
        Real MATC "-1.0*waterpressure(tx)*1.0E-06"
End  

The same can be done using the user function Buoyancy.

other examples (inflow/outflow, dome,…) to come…

tips/boundary.txt · Last modified: 2013/05/07 19:46 by gag
CC Attribution-Share Alike 4.0 International
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0