Skip to content
Snippets Groups Projects
Commit 52800b72 authored by Timo Koch's avatar Timo Koch
Browse files

[hyperelastic] Add dynamic default spatial parameters adding density

parent 9dd28c0e
No related branches found
No related tags found
1 merge request!3878Feature/structural dynamics
...@@ -51,6 +51,24 @@ private: ...@@ -51,6 +51,24 @@ private:
Scalar E_, nu_, mu_, K_, lambda_; Scalar E_, nu_, mu_, K_, lambda_;
}; };
template<class GridGeometry, class Scalar>
class DefaultDynamicHyperelasticSpatialParams
: public DefaultHyperelasticSpatialParams<GridGeometry, Scalar>
{
using ParentType = DefaultHyperelasticSpatialParams<GridGeometry, Scalar>;
public:
DefaultDynamicHyperelasticSpatialParams(std::shared_ptr<const GridGeometry> gridGeometry)
: ParentType(gridGeometry)
, rho_(getParam<Scalar>("SpatialParams.SolidDensity"))
{}
Scalar solidDensity() const
{ return rho_; }
private:
Scalar rho_;
};
} // end namespace Dumux } // end namespace Dumux
#endif #endif
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