v0.13.1
Loading...
Searching...
No Matches
Classes | Functions | Variables
electro_physio.cpp File Reference
#include <stdlib.h>
#include <BasicFiniteElements.hpp>
#include <EP_Operators.hpp>

Go to the source code of this file.

Classes

struct  ElectroPhysioProblem
 

Functions

int main (int argc, char *argv[])
 

Variables

static char help [] = "...\n\n"
 
const double init_u = 0
 
const double init_v = 0
 
const double init_w = 1
 
const double init_s = 0.02155
 

Function Documentation

◆ main()

int main ( int  argc,
char *  argv[] 
)

Definition at line 506 of file electro_physio.cpp.

506 {
507 const char param_file[] = "param_file.petsc";
509 // for(int nsteps = 0; nsteps < 20; ++nsteps){
510 // if(((nsteps + 0) % 4) == 0){
511 // cout << "U" << nsteps << endl;
512 // } else if (((nsteps + 3) % 4) == 0) {
513 // cout << "V" << nsteps << endl;
514 // } else if (((nsteps + 2) % 4) == 0) {
515 // cout << "W" << nsteps << endl;
516 // } else if (((nsteps + 1) % 4) == 0) {
517 // cout << "S" << nsteps << endl;
518 // }
519 // }
520 try {
521 moab::Core mb_instance;
522 moab::Interface &moab = mb_instance;
523 MoFEM::Core core(moab);
524 DMType dm_name = "DMMOFEM";
525 CHKERR DMRegister_MoFEM(dm_name);
526
527 int order = 1;
528 CHKERR PetscOptionsGetInt(PETSC_NULL, "", "-order", &order, PETSC_NULL);
529 ElectroPhysioProblem electro_physio_problem(core, order + 1);
530 CHKERR electro_physio_problem.run_analysis();
531 }
534 return 0;
535}
std::string param_file
#define CATCH_ERRORS
Catch errors.
Definition: definitions.h:372
#define CHKERR
Inline error check.
Definition: definitions.h:535
static char help[]
PetscErrorCode DMRegister_MoFEM(const char sname[])
Register MoFEM problem.
Definition: DMMMoFEM.cpp:47
PetscErrorCode PetscOptionsGetInt(PetscOptions *, const char pre[], const char name[], PetscInt *ivalue, PetscBool *set)
Core (interface) class.
Definition: Core.hpp:82
static MoFEMErrorCode Initialize(int *argc, char ***args, const char file[], const char help[])
Initializes the MoFEM database PETSc, MOAB and MPI.
Definition: Core.cpp:72
static MoFEMErrorCode Finalize()
Checks for options to be called at the conclusion of the program.
Definition: Core.cpp:112

Variable Documentation

◆ help

char help[] = "...\n\n"
static

Definition at line 8 of file electro_physio.cpp.

◆ init_s

const double init_s = 0.02155

Definition at line 13 of file electro_physio.cpp.

◆ init_u

const double init_u = 0
Examples
heat_equation.cpp, and shallow_wave.cpp.

Definition at line 10 of file electro_physio.cpp.

◆ init_v

const double init_v = 0

Definition at line 11 of file electro_physio.cpp.

◆ init_w

const double init_w = 1

Definition at line 12 of file electro_physio.cpp.