Choral
Private Member Functions | Private Attributes | List of all members
mesh_mod::mesh Interface Reference

Derived type mesh. More...

Collaboration diagram for mesh_mod::mesh:
Collaboration graph

Private Member Functions

final mesh_clear
 destructor More...
 
type(mesh) function readmesh (fileName, fileFormat)
  Constructor for the type mesh More...
 
type(mesh) function mesh_create_1d (a, b, n)
  Constructor for the type mesh More...
 

Private Attributes

integer nbcl =0
 Number of cells. More...
 
integer nbnd =0
 Number of nodes. More...
 
integer dim =0
 cell maximal dimension More...
 
integer nbitf = 0
 Number of interfaces. More...
 
real(rp), dimension(:,:), allocatable nd
 mesh node coordinates More...
 
integer, dimension(:), allocatable cltype
 cell types More...
 
integer, dimension(:), allocatable cltag
 cell tags More...
 
integer, dimension(cell_tot_nb) cell_count = 0
 cell_count(CELL_XXX) = number of cells with type CELL_XXX More...
 
type(graphcltond
 connectivity graph : cells –> nodes More...
 
type(graphndtocl
 connectivity graph : nodes –> cells More...
 
type(graphitftocl
 connectivity graph : interfaces –> cells (optional) More...
 
type(graphcltoitf
 connectivity graph : cells –> interfaces (optional) More...
 

Detailed Description

Derived type mesh.

See the description in the detailed description of mesh_mod

Definition at line 92 of file mesh_mod.F90.

Member Function/Subroutine Documentation

◆ mesh_clear()

final mesh_mod::mesh::mesh_clear ( )
finalprivate

destructor

Definition at line 128 of file mesh_mod.F90.

Here is the call graph for this function:

◆ mesh_create_1d()

type(mesh) function mesh_mod::mesh::mesh_create_1d ( real(rp), intent(in)  a,
real(rp), intent(in)  b,
integer, intent(in)  n 
)
private

Constructor for the type mesh

Build the one dimensional regualr mesh of the interval \( (a,b) \) with size \( h = (b-a)/n \)

The mesh is composed of :

  • the \( n \) edge-cells \( [a + (i-1)h, a+ih]\), \( i=1\dots n \),
  • the 2 vertex-cells \( \{a\} \) and \( \{b\} \)
  • INPUT:
    • a, b = define the interval \( (a ,b)\)
    • n = number of 1D cells

Definition at line 513 of file mesh_mod.F90.

◆ readmesh()

type(mesh) function mesh_mod::mesh::readmesh ( character(len=*), intent(in)  fileName,
character(len=*), intent(in)  fileFormat 
)
private

Constructor for the type mesh

Read a mesh from a file.

  • INPUT:
    • fileName
    • fileFormat that can be
      • 'gmsh' for gmsh files

Definition at line 285 of file mesh_mod.F90.

Member Data Documentation

◆ cell_count

integer, dimension(cell_tot_nb) mesh_mod::mesh::cell_count = 0
private

cell_count(CELL_XXX) = number of cells with type CELL_XXX

Definition at line 114 of file mesh_mod.F90.

◆ cltag

integer, dimension(:), allocatable mesh_mod::mesh::cltag
private

cell tags

Definition at line 110 of file mesh_mod.F90.

◆ cltoitf

type(graph) mesh_mod::mesh::cltoitf
private

connectivity graph : cells –> interfaces (optional)

Definition at line 123 of file mesh_mod.F90.

◆ cltond

type(graph) mesh_mod::mesh::cltond
private

connectivity graph : cells –> nodes

Definition at line 117 of file mesh_mod.F90.

◆ cltype

integer, dimension(:), allocatable mesh_mod::mesh::cltype
private

cell types

Definition at line 107 of file mesh_mod.F90.

◆ dim

integer mesh_mod::mesh::dim =0
private

cell maximal dimension

Definition at line 99 of file mesh_mod.F90.

◆ itftocl

type(graph) mesh_mod::mesh::itftocl
private

connectivity graph : interfaces –> cells (optional)

Definition at line 121 of file mesh_mod.F90.

◆ nbcl

integer mesh_mod::mesh::nbcl =0
private

Number of cells.

Definition at line 95 of file mesh_mod.F90.

◆ nbitf

integer mesh_mod::mesh::nbitf = 0
private

Number of interfaces.

Definition at line 101 of file mesh_mod.F90.

◆ nbnd

integer mesh_mod::mesh::nbnd =0
private

Number of nodes.

Definition at line 97 of file mesh_mod.F90.

◆ nd

real(rp), dimension(:,:), allocatable mesh_mod::mesh::nd
private

mesh node coordinates

Definition at line 104 of file mesh_mod.F90.

◆ ndtocl

type(graph) mesh_mod::mesh::ndtocl
private

connectivity graph : nodes –> cells

Definition at line 119 of file mesh_mod.F90.


The documentation for this interface was generated from the following file: