openCARP
Doxygen code documentation for the open cardiac electrophysiology simulator openCARP
Namespaces | Macros | Typedefs | Enumerations | Functions
sf_interface.h File Reference

Interface to SlimFem. More...

#include <map>
#include "fem_types.h"
#include "basics.h"
#include "openCARP_p.h"
#include "openCARP_d.h"
#include "SF_base.h"
Include dependency graph for sf_interface.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 opencarp
 
 opencarp::user_globals
 

Macros

#define CARP_PARAMS
 
#define ALG_TO_NODAL   (num_msh+5)
 Scatter algebraic to nodal. More...
 
#define PETSC_TO_CANONICAL   (num_msh+6)
 Permute algebraic data from PETSC to canonical ordering. More...
 
#define ELEM_PETSC_TO_CANONICAL   (num_msh+7)
 Permute algebraic element data from PETSC to canonical ordering. More...
 
#define PHYSREG_INTRA_ELEC   0
 
#define PHYSREG_EXTRA_ELEC   1
 
#define PHYSREG_EIKONAL   2
 
#define PHYSREG_MECH   3
 
#define PHYSREG_FLUID   4
 
#define PHYSREG_NUM_PHYSICS   5
 

Typedefs

typedef SF::meshdata< mesh_int_t, mesh_real_topencarp::sf_mesh
 
typedef SF::abstract_vector< SF_int, SF_realopencarp::sf_vec
 
typedef SF::abstract_matrix< SF_int, SF_realopencarp::sf_mat
 
typedef SF::abstract_linear_solver< SF_int, SF_realopencarp::sf_sol
 

Enumerations

enum  opencarp::mesh_t {
  opencarp::intra_elec_msh = 0, opencarp::extra_elec_msh, opencarp::eikonal_msh, opencarp::elasticity_msh,
  opencarp::fluid_msh, opencarp::reference_msh, opencarp::phie_recv_msh, opencarp::unset_msh,
  opencarp::num_msh
}
 The enum identifying the different meshes we might want to load. More...
 

Functions

sf_mesh & opencarp::get_mesh (const mesh_t gt)
 Get a mesh by specifying the gridID. More...
 
const char * opencarp::get_mesh_type_name (mesh_t t)
 get a char* to the name of a mesh type More...
 
bool opencarp::mesh_is_registered (const mesh_t gt)
 check wheter a SF mesh is set More...
 
SF::scatteringopencarp::register_scattering (const int from, const int to, const SF::SF_nbr nbr, const int dpn)
 Register a scattering between to grids, or between algebraic and nodal representation of data on the same grid. More...
 
SF::scatteringopencarp::register_scattering (const int from, const int to, const int dpn)
 
SF::scatteringopencarp::register_permutation (const int mesh_id, const int perm_id, const int dpn)
 Register a permutation between two orderings for a mesh. More...
 
SF::scatteringopencarp::get_scattering (const int from, const int to, const SF::SF_nbr nbr, const int dpn)
 Get a scattering from the global scatter registry. More...
 
SF::scatteringopencarp::get_scattering (const int from, const int to, const int dpn)
 
bool opencarp::have_scattering (const int from, const int to, const SF::SF_nbr nbr, const int dpn)
 
bool opencarp::have_scattering (const int from, const int to, const int dpn)
 
bool opencarp::have_permutation (const int mesh_id, const int perm_id, const int dpn)
 
SF::scatteringopencarp::get_permutation (const int mesh_id, const int perm_id, const int dpn)
 Get the PETSC to canonical permutation scattering for a given mesh and number of dpn. More...
 

Detailed Description

Interface to SlimFem.

Author
Aurel Neic
Version
Date
2019-10-25

Definition in file sf_interface.h.

Macro Definition Documentation

◆ ALG_TO_NODAL

#define ALG_TO_NODAL   (num_msh+5)

Scatter algebraic to nodal.

Definition at line 72 of file sf_interface.h.

◆ CARP_PARAMS

#define CARP_PARAMS

Definition at line 37 of file sf_interface.h.

◆ ELEM_PETSC_TO_CANONICAL

#define ELEM_PETSC_TO_CANONICAL   (num_msh+7)

Permute algebraic element data from PETSC to canonical ordering.

Definition at line 76 of file sf_interface.h.

◆ PETSC_TO_CANONICAL

#define PETSC_TO_CANONICAL   (num_msh+6)

Permute algebraic data from PETSC to canonical ordering.

Definition at line 74 of file sf_interface.h.

◆ PHYSREG_EIKONAL

#define PHYSREG_EIKONAL   2

Definition at line 81 of file sf_interface.h.

◆ PHYSREG_EXTRA_ELEC

#define PHYSREG_EXTRA_ELEC   1

Definition at line 80 of file sf_interface.h.

◆ PHYSREG_FLUID

#define PHYSREG_FLUID   4

Definition at line 83 of file sf_interface.h.

◆ PHYSREG_INTRA_ELEC

#define PHYSREG_INTRA_ELEC   0

Definition at line 79 of file sf_interface.h.

◆ PHYSREG_MECH

#define PHYSREG_MECH   3

Definition at line 82 of file sf_interface.h.

◆ PHYSREG_NUM_PHYSICS

#define PHYSREG_NUM_PHYSICS   5

Definition at line 84 of file sf_interface.h.