1#ifndef ASSEMBLEFE_DEF_hpp
2#define ASSEMBLEFE_DEF_hpp
4#include "AssembleFE_decl.hpp"
9template <
class SC,
class LO,
class GO,
class NO>
26 dim_= params_->sublist(
"Parameter").get(
"Dimension",-1);
28 timeIncrement_= params_->sublist(
"Timestepping Parameter").get(
"dt",0.1);
63template <
class SC,
class LO,
class GO,
class NO>
65 TEUCHOS_TEST_FOR_EXCEPTION(dim_==-1, std::runtime_error,
"Dimension not initialized");
69template <
class SC,
class LO,
class GO,
class NO>
76template <
class SC,
class LO,
class GO,
class NO>
79 timeStep_ = timeStep_ + dt;
82template <
class SC,
class LO,
class GO,
class NO>
84 newtonStep_ = newtonStep_+1 ;
89template <
class SC,
class LO,
class GO,
class NO>
95template <
class SC,
class LO,
class GO,
class NO>
101template <
class SC,
class LO,
class GO,
class NO>
105 this->solution_.reset(
new vec_dbl_Type (solution.size(),0.) );
107 for(
int i=0; i< solution.size();i++)
108 (*solution_)[i] = solution[i];
115template <
class SC,
class LO,
class GO,
class NO>
122template <
class SC,
class LO,
class GO,
class NO>
129template <
class SC,
class LO,
class GO,
class NO>
136template <
class SC,
class LO,
class GO,
class NO>
143template <
class SC,
class LO,
class GO,
class NO>
int getDim()
Get the spatial dimension. (Typically 2 or 3)
Definition AssembleFE_def.hpp:137
virtual void updateParams(ParameterListPtr_Type params)
Set or update the parameters read from the ParameterList.
Definition AssembleFE_def.hpp:70
void updateSolution(vec_dbl_Type solution)
Update the solution vector.
Definition AssembleFE_def.hpp:102
AssembleFE(int flag, vec2D_dbl_Type nodesRefConfig, ParameterListPtr_Type parameters, tuple_disk_vec_ptr_Type tuple)
Constructor.
Definition AssembleFE_def.hpp:10
vec_dbl_ptr_Type getSolution()
Get the current local solution vector.
Definition AssembleFE_def.hpp:116
void preProcessing()
This function is called in the beginning of each Newton step before actually assmblying anything.
Definition AssembleFE_def.hpp:123
void postProcessing()
This function is called at the end of each Newton step after updating the solution vector.
Definition AssembleFE_def.hpp:130
vec2D_dbl_Type getNodesRefConfig()
Return the coordnates of the finite element nodes.
Definition AssembleFE_def.hpp:144
double getTimeStep()
Get the time state of the object.
Definition AssembleFE_def.hpp:90
virtual void checkParameters()
Check the input parameters from the constructor and the ParameterList for completeness and consistenc...
Definition AssembleFE_def.hpp:64
virtual void advanceInTime(double dt)
This function is called every time the FEDDLib proceeds from one to the next time step....
Definition AssembleFE_def.hpp:77
vec2D_dbl_Type nodesRefConfig_
Definition AssembleFE_decl.hpp:252
int getNewtonStep()
Get the time state of the object.
Definition AssembleFE_def.hpp:96
void advanceNewtonStep()
This function is called every time the FEDDLib proceeds from one to the next newton step....
Definition AssembleFE_def.hpp:83
Adaptive Mesh Refinement.
Definition AdaptiveMeshRefinement.cpp:5