svMultiPhysics
Loading...
Searching...
No Matches
cep_ion.h
1// SPDX-FileCopyrightText: Copyright (c) Stanford University, The Regents of the
2// University of California, and others. SPDX-License-Identifier: BSD-3-Clause
3
4#ifndef CEP_ION_H
5#define CEP_ION_H
6
7#include "Array.h"
8#include "ComMod.h"
9#include "Simulation.h"
10#include "SolutionStates.h"
11
12#include "all_fun.h"
13#include "consts.h"
14
15#include <string>
16
17namespace cep_ion {
18
19/// @brief Initialize the ionic model state variables and the action potential
20/// of the initial solution.
21///
22/// The state variables of each CEP domain's ionic model are stored in
23/// cep_mod.Xion. Its first row, the membrane potential, is also copied into the
24/// row of the old velocity reserved for the CEP equation, so that the initial
25/// solution agrees with the ionic model.
26///
27/// @param[in,out] simulation The simulation, whose cep_mod.Xion is filled with
28/// the initial ionic model state variables.
29/// @param[in,out] solutions The solution states, whose old velocity receives
30/// the initial action potential.
31void cep_init(Simulation *simulation, SolutionStates &solutions);
32
33void cep_integ(Simulation *simulation, const int iEq, const int iDof,
34 SolutionStates &solutions, const Vector<double> &I4f);
35
36void cep_integ_l(CepMod &cep_mod, cepModelType &cep, Vector<double> &X,
37 Vector<double> &Xg, const double t1, const double I4f,
38 const double dt, const Vector<double> &x);
39}; // namespace cep_ion
40
41#endif
Definition CepMod.h:221
Definition Simulation.h:19
The Vector template class is used for storing int and double data.
Definition Vector.h:26
Cardiac electrophysiology model type.
Definition CepMod.h:144
Holds solution state at old, current, and intermediate time levels.
Definition SolutionStates.h:39