Some examples of typical boundary conditions.
!! 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…