OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
refinedmesh.C File Reference
#include "refinedmesh.h"
#include "domain.h"
#include "element.h"
#include "node.h"
#include "refinedelement.h"

Go to the source code of this file.

Namespaces

 oofem
 the oofem namespace is to define a context or scope in which all oofem names are defined.
 

Macros

#define EDGE_ELEM   1
 
#define FACE_ELEM   2
 
#define QUAD_ELEM   3
 
#define TETRA_ELEM   4
 
#define HEXA_ELEM   5
 
#define CUMUL_EDGES   ( fe_edges )
 
#define CUMUL_FACES   ( fe_edges + fe_faces )
 
#define CUMUL_QUADS   ( fe_edges + fe_faces + fe_quads )
 
#define CUMUL_TETRAS   ( fe_edges + fe_faces + fe_quads + fe_tetras )
 
#define CUMUL_HEXAS   ( fe_edges + fe_faces + fe_quads + fe_tetras + fe_hexas )
 
#define elem_type(ID)
 
#define is_edge(ID)   ( ( elem_type(ID) == EDGE_ELEM ) ? 1 : 0 )
 
#define is_face(ID)   ( ( elem_type(ID) == FACE_ELEM ) ? 1 : 0 )
 
#define is_quad(ID)   ( ( elem_type(ID) == QUAD_ELEM ) ? 1 : 0 )
 
#define is_tetra(ID)   ( ( elem_type(ID) == TETRA_ELEM ) ? 1 : 0 )
 
#define is_hexa(ID)   ( ( elem_type(ID) == HEXA_ELEM ) ? 1 : 0 )
 
#define global_edge_id(ID)   ( ( ID ) )
 
#define global_face_id(ID)   ( ( ID ) + CUMUL_EDGES )
 
#define global_quad_id(ID)   ( ( ID ) + CUMUL_FACES )
 
#define global_tetra_id(ID)   ( ( ID ) + CUMUL_QUADS )
 
#define global_hexa_id(ID)   ( ( ID ) + CUMUL_TETRAS )
 
#define local_edge_id(ID)   ( ( ID ) )
 
#define local_face_id(ID)   ( ( ID ) -CUMUL_EDGES )
 
#define local_quad_id(ID)   ( ( ID ) -CUMUL_FACES )
 
#define local_tetra_id(ID)   ( ( ID ) -CUMUL_QUADS )
 
#define local_hexa_id(ID)   ( ( ID ) -CUMUL_TETRAS )
 
#define matrix_2d(ARRAY, U, V)   ( ARRAY ) [ ( level + 2 ) * ( V ) + ( U ) ]
 
#define matrix_3d(ARRAY, U, V, W)   ( ARRAY ) [ ( level + 2 ) * ( level + 2 ) * ( W ) + ( level + 2 ) * ( V ) + ( U ) ]
 
#define error_message(MSG)   { OOFEM_LOG_RELEVANT( "refineMeshGlobally: %s\n", ( MSG ) ); return ( -1 ); }
 

Macro Definition Documentation

#define CUMUL_EDGES   ( fe_edges )

Definition at line 49 of file refinedmesh.C.

#define CUMUL_FACES   ( fe_edges + fe_faces )

Definition at line 50 of file refinedmesh.C.

#define CUMUL_HEXAS   ( fe_edges + fe_faces + fe_quads + fe_tetras + fe_hexas )

Definition at line 53 of file refinedmesh.C.

#define CUMUL_QUADS   ( fe_edges + fe_faces + fe_quads )

Definition at line 51 of file refinedmesh.C.

#define CUMUL_TETRAS   ( fe_edges + fe_faces + fe_quads + fe_tetras )

Definition at line 52 of file refinedmesh.C.

#define EDGE_ELEM   1

Definition at line 42 of file refinedmesh.C.

Referenced by oofem::RefinedMesh::refineMeshGlobally().

#define elem_type (   ID)
Value:
( ( ( ID ) <= CUMUL_EDGES ) ? EDGE_ELEM : \
( ( ID ) <= CUMUL_FACES ) ? FACE_ELEM : \
( ( ID ) <= CUMUL_QUADS ) ? QUAD_ELEM : \
( ( ID ) <= CUMUL_TETRAS ) ? TETRA_ELEM : \
( ( ID ) <= CUMUL_HEXAS ) ? HEXA_ELEM : 0 )
#define HEXA_ELEM
Definition: refinedmesh.C:46
#define CUMUL_TETRAS
Definition: refinedmesh.C:52
#define TETRA_ELEM
Definition: refinedmesh.C:45
#define CUMUL_HEXAS
Definition: refinedmesh.C:53
#define QUAD_ELEM
Definition: refinedmesh.C:44
#define CUMUL_EDGES
Definition: refinedmesh.C:49
#define FACE_ELEM
Definition: refinedmesh.C:43
#define CUMUL_QUADS
Definition: refinedmesh.C:51
#define CUMUL_FACES
Definition: refinedmesh.C:50
#define EDGE_ELEM
Definition: refinedmesh.C:42

Definition at line 57 of file refinedmesh.C.

Referenced by oofem::RefinedMesh::refineMeshGlobally().

#define error_message (   MSG)    { OOFEM_LOG_RELEVANT( "refineMeshGlobally: %s\n", ( MSG ) ); return ( -1 ); }

Definition at line 96 of file refinedmesh.C.

Referenced by oofem::RefinedMesh::refineMeshGlobally().

#define FACE_ELEM   2

Definition at line 43 of file refinedmesh.C.

Referenced by oofem::RefinedMesh::refineMeshGlobally().

#define global_edge_id (   ID)    ( ( ID ) )

Definition at line 78 of file refinedmesh.C.

#define global_face_id (   ID)    ( ( ID ) + CUMUL_EDGES )

Definition at line 79 of file refinedmesh.C.

Referenced by oofem::RefinedMesh::refineMeshGlobally().

#define global_hexa_id (   ID)    ( ( ID ) + CUMUL_TETRAS )

Definition at line 82 of file refinedmesh.C.

Referenced by oofem::RefinedMesh::refineMeshGlobally().

#define global_quad_id (   ID)    ( ( ID ) + CUMUL_FACES )

Definition at line 80 of file refinedmesh.C.

Referenced by oofem::RefinedMesh::refineMeshGlobally().

#define global_tetra_id (   ID)    ( ( ID ) + CUMUL_QUADS )

Definition at line 81 of file refinedmesh.C.

Referenced by oofem::RefinedMesh::refineMeshGlobally().

#define HEXA_ELEM   5

Definition at line 46 of file refinedmesh.C.

Referenced by oofem::RefinedMesh::refineMeshGlobally().

#define is_edge (   ID)    ( ( elem_type(ID) == EDGE_ELEM ) ? 1 : 0 )

Definition at line 63 of file refinedmesh.C.

Referenced by oofem::RefinedMesh::refineMeshGlobally().

#define is_face (   ID)    ( ( elem_type(ID) == FACE_ELEM ) ? 1 : 0 )

Definition at line 64 of file refinedmesh.C.

Referenced by oofem::RefinedMesh::refineMeshGlobally().

#define is_hexa (   ID)    ( ( elem_type(ID) == HEXA_ELEM ) ? 1 : 0 )

Definition at line 67 of file refinedmesh.C.

Referenced by oofem::RefinedMesh::refineMeshGlobally().

#define is_quad (   ID)    ( ( elem_type(ID) == QUAD_ELEM ) ? 1 : 0 )

Definition at line 65 of file refinedmesh.C.

Referenced by oofem::RefinedMesh::refineMeshGlobally().

#define is_tetra (   ID)    ( ( elem_type(ID) == TETRA_ELEM ) ? 1 : 0 )

Definition at line 66 of file refinedmesh.C.

Referenced by oofem::RefinedMesh::refineMeshGlobally().

#define local_edge_id (   ID)    ( ( ID ) )

Definition at line 85 of file refinedmesh.C.

Referenced by oofem::RefinedMesh::refineMeshGlobally().

#define local_face_id (   ID)    ( ( ID ) -CUMUL_EDGES )

Definition at line 86 of file refinedmesh.C.

Referenced by oofem::RefinedMesh::refineMeshGlobally().

#define local_hexa_id (   ID)    ( ( ID ) -CUMUL_TETRAS )

Definition at line 89 of file refinedmesh.C.

Referenced by oofem::RefinedMesh::refineMeshGlobally().

#define local_quad_id (   ID)    ( ( ID ) -CUMUL_FACES )

Definition at line 87 of file refinedmesh.C.

Referenced by oofem::RefinedMesh::refineMeshGlobally().

#define local_tetra_id (   ID)    ( ( ID ) -CUMUL_QUADS )

Definition at line 88 of file refinedmesh.C.

Referenced by oofem::RefinedMesh::refineMeshGlobally().

#define matrix_2d (   ARRAY,
  U,
 
)    ( ARRAY ) [ ( level + 2 ) * ( V ) + ( U ) ]

Definition at line 92 of file refinedmesh.C.

#define matrix_3d (   ARRAY,
  U,
  V,
 
)    ( ARRAY ) [ ( level + 2 ) * ( level + 2 ) * ( W ) + ( level + 2 ) * ( V ) + ( U ) ]

Definition at line 93 of file refinedmesh.C.

Referenced by oofem::RefinedMesh::refineMeshGlobally().

#define QUAD_ELEM   3

Definition at line 44 of file refinedmesh.C.

Referenced by oofem::RefinedMesh::refineMeshGlobally().

#define TETRA_ELEM   4

Definition at line 45 of file refinedmesh.C.

Referenced by oofem::RefinedMesh::refineMeshGlobally().


This page is part of the OOFEM documentation. Copyright (c) 2011 Borek Patzak
Project e-mail: info@oofem.org
Generated at Tue Jan 2 2018 20:07:33 for OOFEM by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2011