22bool supports_active_stress(
const consts::EquationType eq_type);
217 void clear() { active_stress_ =
nullptr; }
236 evaluate(
const Eigen::Ref<const Eigen::VectorXd> &N,
238 const Eigen::Ref<
const Eigen::Matrix<double, nsd, Eigen::Dynamic>>
248 Eigen::MatrixXd state_;
283 virtual std::unique_ptr<ActiveStressModelParameters>
316 const double fiber_stretch)
const {
318 const double derivative =
333 virtual void init(
const unsigned int tnNo);
361 virtual void update(
const double t,
const double dt,
432 const double calcium,
433 const double fiber_stretch,
434 const double fiber_stretch_rate,
445 const double fiber_stretch)
const = 0;
456 const double fiber_stretch)
const = 0;
516#define REGISTER_ACTIVE_STRESS_MODEL(name, type) \
517 REGISTER_IN_FACTORY(ActiveStress, type, name)
Helper to evaluate active tension at quadrature points.
Definition ActiveStress.h:200
ActiveTension evaluate(const Eigen::Ref< const Eigen::VectorXd > &N, const mat_fun::Matrix< nsd > &F, const Eigen::Ref< const Eigen::Matrix< double, nsd, Eigen::Dynamic > > &fibers) const
Compute the active tension at a quadrature point.
void clear()
Reset this evaluator so that evaluate returns zero tension, until the next call to update.
Definition ActiveStress.h:217
void update(const ActiveStress &active_stress, const Vector< int > &nodes)
Update the evaluator for a given element.
Definition ActiveStress.cpp:14
virtual void init_local(Vector< double > &state) const =0
Initialize the state vector for a single node.
double eta_n
Active tension coefficient along the sheet-normal direction.
Definition ActiveStress.h:503
double calcium_scaling_factor_
Definition ActiveStress.h:490
bool implicit_state_coupling() const
Whether the state of this model is updated within the nonlinear iterations of the mechanics problem,...
Definition ActiveStress.h:385
double time
Time instant being advanced to. Set by update.
Definition ActiveStress.h:469
virtual void advance_time_step_local(const double t, const double dt, const double calcium, const double fiber_stretch, const double fiber_stretch_rate, Vector< double > &state) const =0
Advance in time for a single node.
bool needs_fiber_stretch_
Backing store for needs_fiber_stretch.
Definition ActiveStress.h:461
virtual double compute_active_tension_local(const Vector< double > &state, const double fiber_stretch) const =0
Compute the active tension for a single node.
bool disable_force_strain_rate_feedback_
Definition ActiveStress.h:494
virtual double compute_active_tension_derivative_local(const Vector< double > &state, const double fiber_stretch) const =0
Compute the partial derivative of the active tension with respect to the fiber stretch,...
virtual void read_model_specific_parameters(const ActiveStressModelParameters ¶ms)=0
Read model parameters from a parameter object.
virtual void time_advance()
Begin a new time step.
Definition ActiveStress.cpp:114
double eta_f
Active tension coefficient along the fiber direction.
Definition ActiveStress.h:497
bool needs_fiber_stretch_rate_
Backing store for needs_fiber_stretch_rate.
Definition ActiveStress.h:466
void read_parameters(const ActiveStressParameters ¶ms)
Read model parameters from a parameter object.
Definition ActiveStress.cpp:64
bool implicit_state_coupling_
Whether the state of this model is updated within the nonlinear iterations of the mechanics problem.
Definition ActiveStress.h:486
Array< double > states
State variables for the model.
Definition ActiveStress.h:472
double eta_s
Active tension coefficient along the sheet direction.
Definition ActiveStress.h:500
Array< double > states_at_time_step_start
State variables at the beginning of the current time step.
Definition ActiveStress.h:480
const unsigned int n_states
Number of state variables for this model.
Definition ActiveStress.h:388
ActiveTension compute_tension(const Vector< double > &state, const double fiber_stretch) const
Compute the active tension given the state vector and fiber stretch.
Definition ActiveStress.h:315
void distribute_parameters(const CmMod &cm_mod, const cmType &cm)
Distribute model parameters to all parallel processes.
Definition ActiveStress.cpp:83
bool needs_fiber_stretch_rate() const
Whether this model uses the fiber stretch rate passed to update. This flag can be used to determine w...
Definition ActiveStress.h:378
virtual ~ActiveStress()=default
Virtual destructor.
virtual std::unique_ptr< ActiveStressModelParameters > get_parameters() const =0
Construct an instance of model parameters for this model.
bool needs_fiber_stretch() const
Whether this model uses the fiber stretch passed to update. This flag can be used to determine whethe...
Definition ActiveStress.h:371
virtual void distribute_model_specific_parameters(const CmMod &cm_mod, const cmType &cm)=0
Distribute model parameters to all parallel processes.
virtual void init(const unsigned int tnNo)
Initialize the model.
Definition ActiveStress.cpp:98
virtual void update(const double t, const double dt, const Vector< double > &calcium, const Vector< double > &fiber_stretch, const Vector< double > &fiber_stretch_rate)
Update the state over the current time step.
Definition ActiveStress.cpp:116
Vector< double > get_state(const unsigned int Ac) const
Get the state vector at a given mesh node.
Definition ActiveStress.h:301
ActiveStress(const unsigned int n_states_, const bool needs_fiber_stretch, const bool needs_fiber_stretch_rate)
Constructor.
Definition ActiveStress.h:270
Parameters for a generic active stress model.
Definition Parameters.h:1450
Parameters for active stress models.
Definition Parameters.h:1540
The CmMod class duplicates the data structures in the Fortran CMMOD module defined in COMU....
Definition CmMod.h:37
Abstract self-registering factory.
Definition factory.h:30
The Vector template class is used for storing int and double data.
Definition Vector.h:26
The cmType class stores data and defines methods used for mpi communication.
Definition CmMod.h:57
Eigen::Matrix< double, nsd, nsd > Matrix
A 2nd order tensor, nsd x nsd, fixed size and stack allocated. Used for the deformation gradient,...
Definition mat_fun.h:29
Active tension information at a point.
Definition ActiveStress.h:169
double sheet_normals
Tension along the sheet-normal direction, .
Definition ActiveStress.h:177
double d_sheet_normals
Definition ActiveStress.h:189
double d_sheets
Definition ActiveStress.h:185
double fibers
Tension along the fiber direction, .
Definition ActiveStress.h:171
double sheets
Tension along the sheet direction, .
Definition ActiveStress.h:174
double d_fibers
Definition ActiveStress.h:181