Skip to content
Snippets Groups Projects
Commit bf037713 authored by Lisa Julia Nebel's avatar Lisa Julia Nebel
Browse files

Change the cosseratcontinuumtest to check the newly implemented part in...

Change the cosseratcontinuumtest to check the newly implemented part in localintegralenergy and the bulkcosseratdensity
parent 36f7a2b0
No related branches found
No related tags found
1 merge request!136Compare the part for 3d in CosseratEnergyLocalStiffness with the extracted...
...@@ -22,10 +22,13 @@ ...@@ -22,10 +22,13 @@
#include <dune/fufem/boundarypatch.hh> #include <dune/fufem/boundarypatch.hh>
#include <dune/gfe/assemblers/cosseratenergystiffness.hh>
#include <dune/gfe/assemblers/mixedlocalgfeadolcstiffness.hh> #include <dune/gfe/assemblers/mixedlocalgfeadolcstiffness.hh>
#include <dune/gfe/assemblers/mixedgfeassembler.hh> #include <dune/gfe/assemblers/mixedgfeassembler.hh>
#include <dune/gfe/assemblers/sumenergy.hh>
#include <dune/gfe/assemblers/localintegralenergy.hh>
#include <dune/gfe/densities/bulkcosseratdensity.hh>
#include <dune/gfe/mixedriemanniantrsolver.hh> #include <dune/gfe/mixedriemanniantrsolver.hh>
#include <dune/gfe/neumannenergy.hh>
// grid dimension // grid dimension
const int dim = 3; const int dim = 3;
...@@ -193,14 +196,16 @@ int main (int argc, char *argv[]) ...@@ -193,14 +196,16 @@ int main (int argc, char *argv[])
// Create an assembler // Create an assembler
// //////////////////////////// // ////////////////////////////
CosseratEnergyLocalStiffness<CompositeBasis, dim,adouble> localCosseratEnergy(parameters, GFE::SumEnergy<CompositeBasis, RealTuple<adouble,dim>,Rotation<adouble,dim> > sumEnergy;
neumannBoundary.get(), auto neumannEnergy = std::make_shared<GFE::NeumannEnergy<CompositeBasis, RealTuple<adouble,dim>, Rotation<adouble,dim>>>(neumannBoundary,neumannFunction);
neumannFunction, auto bulkCosseratDensity = std::make_shared<GFE::BulkCosseratDensity<adouble,double>>(parameters);
nullptr); auto bulkCosseratEnergy = std::make_shared<GFE::LocalIntegralEnergy<CompositeBasis, RealTuple<adouble,dim>, Rotation<adouble,dim>>>(bulkCosseratDensity);
sumEnergy.addLocalEnergy(bulkCosseratEnergy);
sumEnergy.addLocalEnergy(neumannEnergy);
MixedLocalGFEADOLCStiffness<CompositeBasis, MixedLocalGFEADOLCStiffness<CompositeBasis,
RealTuple<double,dim>, RealTuple<double,dim>,
Rotation<double,dim> > localGFEADOLCStiffness(&localCosseratEnergy); Rotation<double,dim> > localGFEADOLCStiffness(&sumEnergy);
MixedGFEAssembler<CompositeBasis, MixedGFEAssembler<CompositeBasis,
RealTuple<double,dim>, RealTuple<double,dim>,
Rotation<double,dim> > mixedAssembler(compositeBasis, &localGFEADOLCStiffness); Rotation<double,dim> > mixedAssembler(compositeBasis, &localGFEADOLCStiffness);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment