Skip to content
Snippets Groups Projects
Commit 5d431e46 authored by Sander, Oliver's avatar Sander, Oliver
Browse files

Use the NonplanarCosseratShellEnergy if dim<dimworld

parent 24fd3204
No related branches found
No related tags found
No related merge requests found
......@@ -37,6 +37,7 @@
#include <dune/gfe/rigidbodymotion.hh>
#include <dune/gfe/localgeodesicfeadolcstiffness.hh>
#include <dune/gfe/cosseratenergystiffness.hh>
#include <dune/gfe/nonplanarcosseratshellenergy.hh>
#include <dune/gfe/cosseratvtkwriter.hh>
#include <dune/gfe/cosseratvtkreader.hh>
#include <dune/gfe/geodesicfeassembler.hh>
......@@ -290,8 +291,11 @@ int main (int argc, char *argv[]) try
}
// Assembler using ADOL-C
CosseratEnergyLocalStiffness<FEBasis,
3,adouble> cosseratEnergyADOLCLocalStiffness(materialParameters,
using LocalEnergy = std::conditional<dim==dimworld,
CosseratEnergyLocalStiffness<FEBasis,3,adouble>,
NonplanarCosseratShellEnergy<FEBasis,3,adouble> >::type;
LocalEnergy cosseratEnergyADOLCLocalStiffness(materialParameters,
&neumannBoundary,
neumannFunction,
volumeLoad);
......
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