m_boundary_conditions.py

class m_boundary_conditions.Point_Fixed_Pressure

Bases: SubDomain

inside(x, on_boundary)
Returns:

Identifies the node that is located at the top left corner of the domain, where the pressure will be anchored in case of no free surface boundary condition.

m_boundary_conditions.apply_temperature_BC(sCG2, boundary_parts)

Applies the Dirichlet boundary conditions for the heat equation.

Parameters:
  • sCG2 – function space for the temperature

  • boundary_parts – how to describe that….

Returns:

A list of the Dirichlet BCs (temperature) that will be given to the

m_boundary_conditions.apply_velocity_BC(V, boundary_parts, top_left, t)

Applies the Dirichlet boundary conditions for the Stokes problem.

Parameters:
  • V – function space for the Stokes problem

  • boundary_parts – how to describe that….

  • top_left – coordinates of the point where to fix pressure if no boundary is free surface

Returns:

A list of the Dirichlet BCs ( velocity) that will be given to the Stokes problem, see m_equations.Equations.equation_stokes().