Choral
Functions/Subroutines
mesh_interfaces Module Reference

DEFINE THE INTERFACES AND THE BOUNDARY CELLS OF A mesh More...

Functions/Subroutines

subroutine, public define_interfaces (m)
 Defines the mesh interfaces. More...
 
subroutine, public define_domain_boundary (m)
 For a mesh of dimension d The boundary of the mesh domain is a collection of cells of dimension d-1. More...
 
subroutine boundary_interface_scan (tab, m)
 BUILDS Tab(1:3,1:mnbItf) More...
 
subroutine define_2dmesh_edges (m)
 
subroutine define_3dmesh_faces (m)
 
subroutine define_1dmesh_vertexes (m)
 
subroutine add_cells (m, type, nodes)
 Adds N cells to the mesh These new cells are added in first position. More...
 

Detailed Description

DEFINE THE INTERFACES AND THE BOUNDARY CELLS OF A mesh

Mesh interfaces and boundary cells are defined in the detailed description of mesh_mod.

For a mesh 'm', its interfaces are built with (after the mesh has been constructed)

call define_interfaces(m)

This instruction computes:

After the mesh interfaces have been built, the boundary cells can be defined with

call define_domain_boundary(m)

If not already present in the mesh, these cells are then added.

Author
Charles Pierre

Function/Subroutine Documentation

◆ add_cells()

subroutine mesh_interfaces::add_cells ( type(mesh), intent(inout)  m,
integer, dimension(:), intent(in)  type,
integer, dimension(:,:), intent(in)  nodes 
)
private

Adds N cells to the mesh These new cells are added in first position.

Cell 'ii' has type 'type(ii)' and its node index are in nodes(:,ii)'

WARNING. The mesh is rebuilt and so all data in the mesh other than: mnodes (node coordinates) mclToNd (cell to node connectivity are lost.

Definition at line 1185 of file mesh_interfaces.F90.

Here is the call graph for this function:

◆ boundary_interface_scan()

subroutine mesh_interfaces::boundary_interface_scan ( integer, dimension(:,:), allocatable  tab,
type(mesh), intent(inout)  m 
)
private

BUILDS Tab(1:3,1:mnbItf)

IF interface 'itf' is an internal interface tab( :, itf) = 0

ELSE tab( 1, itf) = cl where cl is a cell of dimension mdim such that cl = co-boundary(itf)

tab( 2, itf) = idx the local index of the considered interface relatively to the cell 'cl'

IF there exists a cell 'cl2' with dimension mdim-1 such that cl2 has the vertexes of itf among its nodes

THEN : tab( 3, itf) = cl2

ELSE : tab( 3, itf) = 0 this indicates that a part of the mesh domain boundary is absent in the mesh

Definition at line 244 of file mesh_interfaces.F90.

Here is the call graph for this function:

◆ define_1dmesh_vertexes()

subroutine mesh_interfaces::define_1dmesh_vertexes ( type(mesh), intent(inout)  m)
private

Definition at line 942 of file mesh_interfaces.F90.

Here is the call graph for this function:

◆ define_2dmesh_edges()

subroutine mesh_interfaces::define_2dmesh_edges ( type(mesh), intent(inout)  m)
private

Definition at line 405 of file mesh_interfaces.F90.

Here is the call graph for this function:

◆ define_3dmesh_faces()

subroutine mesh_interfaces::define_3dmesh_faces ( type(mesh), intent(inout)  m)
private

Definition at line 667 of file mesh_interfaces.F90.

Here is the call graph for this function:

◆ define_domain_boundary()

subroutine, public mesh_interfaces::define_domain_boundary ( type(mesh), intent(inout)  m)

For a mesh of dimension d The boundary of the mesh domain is a collection of cells of dimension d-1.

These cells are added to the mesh if not already present

Definition at line 91 of file mesh_interfaces.F90.

Here is the call graph for this function:

◆ define_interfaces()

subroutine, public mesh_interfaces::define_interfaces ( type(mesh), intent(inout)  m)

Defines the mesh interfaces.

Definition at line 60 of file mesh_interfaces.F90.

Here is the call graph for this function: