1#ifndef ASSEMBLEFE_DEF_hpp
2#define ASSEMBLEFE_DEF_hpp
7template <
class SC,
class LO,
class GO,
class NO>
24 dim_= params_->sublist(
"Parameter").get(
"Dimension",-1);
26 timeIncrement_= params_->sublist(
"Timestepping Parameter").get(
"dt",0.1);
61template <
class SC,
class LO,
class GO,
class NO>
63 TEUCHOS_TEST_FOR_EXCEPTION(dim_==-1, std::runtime_error,
"Dimension not initialized");
67template <
class SC,
class LO,
class GO,
class NO>
74template <
class SC,
class LO,
class GO,
class NO>
77 timeStep_ = timeStep_ + dt;
80template <
class SC,
class LO,
class GO,
class NO>
82 newtonStep_ = newtonStep_+1 ;
87template <
class SC,
class LO,
class GO,
class NO>
93template <
class SC,
class LO,
class GO,
class NO>
99template <
class SC,
class LO,
class GO,
class NO>
103 this->solution_.reset(
new vec_dbl_Type (solution.size(),0.) );
105 for(
int i=0; i< solution.size();i++)
106 (*solution_)[i] = solution[i];
113template <
class SC,
class LO,
class GO,
class NO>
120template <
class SC,
class LO,
class GO,
class NO>
127template <
class SC,
class LO,
class GO,
class NO>
134template <
class SC,
class LO,
class GO,
class NO>
141template <
class SC,
class LO,
class GO,
class NO>
int getDim()
TODO: PostProcessing: Teuchos::Array with values and one global Array with Strings and names.
Definition AssembleFE_def.hpp:135
virtual void updateParams(ParameterListPtr_Type params)
Set or update the parameters read from the ParameterList.
Definition AssembleFE_def.hpp:68
void updateSolution(vec_dbl_Type solution)
Update the solution vector.
Definition AssembleFE_def.hpp:100
AssembleFE(int flag, vec2D_dbl_Type nodesRefConfig, ParameterListPtr_Type parameters, tuple_disk_vec_ptr_Type tuple)
Constructor.
Definition AssembleFE_def.hpp:8
vec_dbl_ptr_Type getSolution()
Get the current local solution vector.
Definition AssembleFE_def.hpp:114
void preProcessing()
This function is called in the beginning of each Newton step before actually assmblying anything.
Definition AssembleFE_def.hpp:121
void postProcessing()
This function is called at the end of each Newton step after updating the solution vector.
Definition AssembleFE_def.hpp:128
vec2D_dbl_Type getNodesRefConfig()
Return the coordnates of the finite element nodes.
Definition AssembleFE_def.hpp:142
double getTimeStep()
Get the time state of the object.
Definition AssembleFE_def.hpp:88
virtual void checkParameters()
Check the input parameters from the constructor and the ParameterList for completeness and consistenc...
Definition AssembleFE_def.hpp:62
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:75
vec2D_dbl_Type nodesRefConfig_
TODO: Why "Reference Configuration"?
Definition AssembleFE_decl.hpp:255
int getNewtonStep()
Get the time state of the object.
Definition AssembleFE_def.hpp:94
void advanceNewtonStep()
This function is called every time the FEDDLib proceeds from one to the next newton step....
Definition AssembleFE_def.hpp:81
Adaptive Mesh Refinement.
Definition AdaptiveMeshRefinement_decl.hpp:36