"""Set the weak boundaries (=normal fluxes) for the fluid problem.
Keyword arguments:
tag -- physical tag (set in the mesh.geo file) of the boundary on which the flux type is added
bnd_type -- type of the boundary flux: wall, pressure, velocity
callback_or_value -- list of values (functions) to specify the weak boundary values
Raises:
ValueError -- if the number of values set in the list callback_or_value do not match what is expected for the boundary type : wall do not take any values; pressure takes a value for the pressure and concentration if any; velocity takes values for each velocity dimension and the concentration if any.
"""
ifbnd_type.lower()=='wall':
ifwall_pressure:
self._n_value=1
else:
self._n_value=0
elifbnd_type.lower()=='velocity':
self._n_value=self._dim+self._n_fluids-1# u, v, w, p, a
elifbnd_type.lower()=='pressure':
self._n_value=self._n_fluids# p, a
iflen(callback_or_value)!=self._n_value:
raiseValueError("Number of weak boundary values don't match the weak boundary type.")
ifpressure:
raiseNameError("Wall pressure not yet implemented")
"""Set the weak boundaries (=normal fluxes) for the fluid problem.
Keyword arguments:
tag -- physical tag (set in the mesh.geo file) of the boundary on which the flux type is added
bnd_type -- type of the boundary flux: wall, pressure, velocity
Raises:
ValueError -- if the number of values set in the list callback_or_value do not match what is expected for the boundary type : wall do not take any values; pressure takes a value for the pressure and concentration if any; velocity takes values for each velocity dimension and the concentration if any.