![]() |
Dune-Fufem 2.11-git
|
Loading...
Searching...
No Matches
linear-elasticity.cc
97 auto gridPtr = Dune::StructuredGridFactory<Grid>::createCubeGrid(lowerCorner, upperCorner, elementCount);
212 auto vtkWriter = Dune::Vtk::UnstructuredGridWriter(Dune::Vtk::DiscontinuousLagrangeDataCollector(gridView, order));
213 vtkWriter.addPointData(u|sol, Dune::VTK::FieldInfo("u", Dune::VTK::FieldInfo::Type::vector, dim));
214 vtkWriter.addPointData(E(u)|sol, Dune::VTK::FieldInfo("Eu", Dune::VTK::FieldInfo::Type::tensor, dim*dim));
215 vtkWriter.addPointData(sigma|sol, Dune::VTK::FieldInfo("sigma", Dune::VTK::FieldInfo::Type::tensor, dim*dim));
216 vtkWriter.addPointData(sigma_dev|sol, Dune::VTK::FieldInfo("sigma_dev", Dune::VTK::FieldInfo::Type::tensor, dim*dim));
217 vtkWriter.addPointData(sigma_vol|sol, Dune::VTK::FieldInfo("sigma_vol", Dune::VTK::FieldInfo::Type::scalar, 1));
218 vtkWriter.addPointData(sigma_von_Mises_sol, Dune::VTK::FieldInfo("sigma_von_Mises", Dune::VTK::FieldInfo::Type::scalar, 1));
int main(int argc, char **argv)
field_type dot(const type &newv) const
Y & rhs()
constexpr BlockedInterleaved blockedInterleaved()
std::vector< Child > Vector
auto makeBasis(const GridView &gridView, PreBasisFactory &&preBasisFactory)
static std::string formatString(const std::string &s, const T &... args)
size_type dim() const
const char * what() const noexcept override
void computeBoundaryConstraints(AffineConstraints< BV, V, MI, C > &constraints, const Basis &basis, Function &&f, const IntersectionSet &intersectionSet)
Compute constraints for essential boundary conditions.
Definition boundaryconstraints.hh:51
auto testFunction(const Basis &basis)
Create unary identity operator on test function space.
Definition userfunctions.hh:694
auto trialFunction(const Basis &basis)
Create unary identity operator on trial function space.
Definition userfunctions.hh:773
auto grad(const Op &op)
Obtain the gradient of an operator.
Definition userfunctions.hh:1186
auto dot(const L &l, const R &r)
Exterior product of two multilinear operators based on pointwise dot-product.
Definition userfunctions.hh:458
auto trace(const Op &op)
Transform an operator by pointwise computation of the matrix trace.
Definition userfunctions.hh:595
auto symmetrize(const Op &op)
Transform an operator by pointwise matrix symmetrization.
Definition userfunctions.hh:577
::value auto integrate(MultilinearOperator op, const Domain &domain)
Integrate a k-linear operator to obtain a k-linear form.
Definition integrate.hh:53
auto makeLogger(std::ostream &stream, std::string format)
Create a simple logger callback.
Definition logger.hh:42
Definition baseclass.hh:22
const Grid & grid() const
ALBERTA REAL_B LocalVector
static DUNE_EXPORT MPIHelper & instance(int &argc, char **&argv)
static void readOptions(int argc, char *argv[], ParameterTree &pt)
static void createCubeGrid(GridFactory< GridType > &factory, const FieldVector< ctype, dimworld > &lowerLeft, const FieldVector< ctype, dimworld > &upperRight, const std::array< unsigned int, dim > &elements)
LeafGridView leafGridView() const
void globalRefine(int refCount)
Encapsulate a subset of the boundary intersections of a GridView.
Definition domains/boundarypatch.hh:37
Adaptor for making a callback compatible with Dune::Fufem::Forms.
Definition userfunctions.hh:510
T endl(T... args)
T hardware_concurrency(T... args)
T log(T... args)
T sqrt(T... args)
