![]() |
Dune-Fufem 2.11-git
|
Loading...
Searching...
No Matches
stokes-darcy.cc
166 computeBoundaryConstraints(constraints, stokesVelocityBasis, stokesVelocityDirichletValues, stokesDirichletBoundary);
167 computeBoundaryConstraints(constraints, darcyBasis, darcyDirichletValues, darcyDirichletBoundary);
250 auto vtkWriter = Dune::Vtk::UnstructuredGridWriter(Dune::Vtk::DiscontinuousLagrangeDataCollector(basis.gridView(), maxOrder));
251 vtkWriter.addPointData(u|sol, Dune::VTK::FieldInfo("stokes_velocity", Dune::VTK::FieldInfo::Type::vector, dim));
252 vtkWriter.addPointData(p|sol, Dune::VTK::FieldInfo("stokes_pressure", Dune::VTK::FieldInfo::Type::scalar, 1));
253 vtkWriter.addPointData(phi|sol, Dune::VTK::FieldInfo("darcy_pressure", Dune::VTK::FieldInfo::Type::scalar, 1));
254 vtkWriter.addPointData(-K*jacobian(phi)|sol, Dune::VTK::FieldInfo("darcy_velocity", Dune::VTK::FieldInfo::Type::vector, dim));
255 vtkWriter.addPointData((p+phi)|sol, Dune::VTK::FieldInfo("pressure", Dune::VTK::FieldInfo::Type::scalar, 1));
256 vtkWriter.addPointData((u-K*jacobian(phi))|sol, Dune::VTK::FieldInfo("velocity", Dune::VTK::FieldInfo::Type::vector, dim));
int main(int argc, char **argv)
field_type dot(const type &newv) const
double alpha() const
Y & rhs()
static std::string formatString(const std::string &s, const T &... args)
size_type dim() const
const char * what() const noexcept override
static DUNE_EXPORT MPIHelper & instance(int &argc, char **&argv)
static void readOptions(int argc, char *argv[], ParameterTree &pt)
LeafGridView leafGridView() const
void globalRefine(int refCount)
Class for storing data associated to boundary segments.
Definition boundarydata.hh:44
Encapsulate a subset of the boundary intersections of a GridView.
Definition domains/boundarypatch.hh:37
T div(T... args)
T endl(T... args)
auto makeAffineConstraints(const Basis &basis)
Create and initialize an AffineConstraints object for a basis.
Definition affineconstraints.hh:825
::value &&QuadratureHints::IsQuadratureHint< QuadratureHint >::value auto integrate(MultilinearOperator op, const Domain &domain, QuadratureHint hint)
Integrate a k-linear operator to obtain a k-linear form.
Definition integrate.hh:55
auto jacobian(const FEFunctionOperator< B, TP, argIndex > &op)
Obtain the jacobian of an operator.
Definition userfunctions.hh:1064
auto grad(const Op &op)
Obtain the gradient of an operator.
Definition userfunctions.hh:1187
auto faceNormal(const GridView &gridView)
Construct operator representing the face normals.
Definition userfunctions.hh:967
auto outside(const Op &op)
Construct outside version of a given operator.
Definition userfunctions.hh:864
auto compose(const OuterOp &outerOp, const InnerOp &innerOp)
Generic composition of a multilinear operators with a pointwise outer operator.
Definition userfunctions.hh:483
T log(T... args)
Definition baseclass.hh:22
auto makeLogger(std::ostream &stream, std::string format)
Create a simple logger callback.
Definition logger.hh:42
auto subspaceBasis(const RootBasis &rootBasis, const TypeTree::TreePath< PrefixTreeIndices... > &prefixPath)
T sqrt(T... args)
