Skip to content
Snippets Groups Projects
Commit 5ce89b10 authored by webmanue's avatar webmanue
Browse files

adapt CuboidMesh example for complex values

parent a0dc1928
No related branches found
No related tags found
No related merge requests found
...@@ -60,7 +60,8 @@ constexpr auto dof_per_vertex = Mesh::size_type{3}; ...@@ -60,7 +60,8 @@ constexpr auto dof_per_vertex = Mesh::size_type{3};
// First, we select a Hookean (linear elastic) material model in 3D. // First, we select a Hookean (linear elastic) material model in 3D.
using MaterialModel = materialmodels::Hookean<dimension>; using MaterialModel =
materialmodels::Hookean<dimension, Vector::value_type, Vector::real_type>;
// We'll choose the Hexa8 shape functions (8 shape functions) that are defined // We'll choose the Hexa8 shape functions (8 shape functions) that are defined
// in 3D reference space. // in 3D reference space.
...@@ -80,11 +81,14 @@ using Quadrature = quadrature::Quadrature<quadrature::QuadratureType::Cube, ...@@ -80,11 +81,14 @@ using Quadrature = quadrature::Quadrature<quadrature::QuadratureType::Cube,
// on the selected quadrature rule and the embedding. In the case of the // on the selected quadrature rule and the embedding. In the case of the
// isoparametric embedding, this embedding is specified by the "Shape". // isoparametric embedding, this embedding is specified by the "Shape".
using Integrator = integrator::IsoparametricIntegrator<Shape, Quadrature>; using Integrator =
integrator::IsoparametricIntegrator<Shape, Quadrature, Vector::value_type,
Vector::real_type>;
// Now we are ready to select our element type. // Now we are ready to select our element type.
using Element = elements::CoreElement<MaterialModel, Integrator>; using Element = elements::CoreElement<MaterialModel, Integrator,
Vector::value_type, Vector::real_type>;
// We will assemble e.g. energy using a collection of elements. This is done by // We will assemble e.g. energy using a collection of elements. This is done by
// the assembler. (The list DefaultFeaturePlugins contain the features (e.g. // the assembler. (The list DefaultFeaturePlugins contain the features (e.g.
......
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