Skip to content
Snippets Groups Projects
Commit 8ce35f94 authored by Jonathan Youett's avatar Jonathan Youett
Browse files

Add default constructor

parent 69b28520
Branches
Tags
No related merge requests found
......@@ -40,6 +40,8 @@ public:
using typename Base::LocalVector;
using GridFunction = VirtualGridFunction<GridType, T >;
MooneyRivlinFunctionalAssembler() = default;
//! Create assembler from material parameters
MooneyRivlinFunctionalAssembler(ctype a, ctype b, ctype c, ctype d, ctype e, int k) :
a_(a),b_(b),c_(c),d_(d),e_(e),k_(k)
......
......@@ -44,6 +44,8 @@ public:
using typename Base::BoolMatrix;
using typename Base::LocalMatrix;
MooneyRivlinOperatorAssembler() = default;
MooneyRivlinOperatorAssembler(ctype a, ctype b, ctype c, ctype d, ctype e, int k) :
a_(a),b_(b),c_(c),d_(d),e_(e),k_(k)
{}
......
......@@ -58,6 +58,8 @@ public:
typedef typename LocalFunctionalAssembler<GridType,TrialLocalFE,T>::LocalVector LocalVector;
typedef VirtualGridFunction<GridType, T > GridFunction;
NeoHookeFunctionalAssembler() = default;
//! Create assembler from material parameters and a grid
NeoHookeFunctionalAssembler(ctype lambda, ctype mu, const std::shared_ptr<GridFunction> displacement) :
lambda_(lambda),
......
......@@ -67,6 +67,7 @@ public:
typedef typename LocalOperatorAssembler < GridType, TrialLocalFE, AnsatzLocalFE,T >::BoolMatrix BoolMatrix;
typedef typename LocalOperatorAssembler < GridType, TrialLocalFE, AnsatzLocalFE,T >::LocalMatrix LocalMatrix;
NeoHookeOperatorAssembler() = default;
NeoHookeOperatorAssembler(ctype lambda, ctype mu, const std::shared_ptr<GridFunction> displacement):
lambda_(lambda), mu_(mu), displacement_(displacement)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment