fill_rhs Subroutine

subroutine fill_rhs(host_field)

Fill host_field with the right-hand side of the Poisson equation. The routine uses the host-associated mesh, dims and n_pi. Edit this routine to supply another right-hand side, then rebuild. The coordinates are the cell centres from mesh%get_coordinates(i, j, k, CELL). The right-hand side must have zero mean. In every supported combination of boundary conditions, the pressure has periodic or homogeneous Neumann conditions. The default is cos(2 pi x).

Arguments

Type IntentOptional Attributes Name
class(field_t), intent(inout) :: host_field

Calls

proc~~fill_rhs~~CallsGraph proc~fill_rhs x3d2_poisson_solver::fill_rhs proc~get_coordinates m_mesh::mesh_t%get_coordinates proc~fill_rhs->proc~get_coordinates

Called by

proc~~fill_rhs~~CalledByGraph proc~fill_rhs x3d2_poisson_solver::fill_rhs program~x3d2_poisson_solver x3d2_poisson_solver program~x3d2_poisson_solver->proc~fill_rhs