Adds vtk output fields specific to pore-network models. More...
#include <dumux/porenetwork/common/pnmvtkoutputmodule.hh>
Adds vtk output fields specific to pore-network models.
Public Types | |
using | VolumeVariables = VV |
export type of the volume variables for the outputfields More... | |
Public Member Functions | |
VtkOutputModule (const GridVariables &gridVariables, const SolutionVector &sol, const std::string &name, const std::string ¶mGroup="", Dune::VTK::DataMode dm=Dune::VTK::conforming, bool verbose=true) | |
The constructor. More... | |
void | addFluxVariable (std::function< Scalar(const FluxVariables &, const FluxVarsCache &)> &&f, const std::string &name) |
void | write (double time, Dune::VTK::OutputType type=Dune::VTK::ascii) |
Gather and process all required data and write them to a vtk file. More... | |
const auto & | problem () const |
Return a reference to the problem. More... | |
void | addVelocityOutput (std::shared_ptr< VelocityOutputType > velocityOutput) |
Add a velocity output policy. More... | |
void | addVolumeVariable (std::function< Scalar(const VolumeVariables &)> &&f, const std::string &name) |
template<class VVV = VolVarsVector, typename std::enable_if_t<(VVV::dimension > 1), int > = 0> | |
void | addVolumeVariable (std::function< VolVarsVector(const VolumeVariables &)> &&f, const std::string &name) |
const std::string & | paramGroup () const |
the parameter group for getting parameter from the parameter tree More... | |
void | addField (const Vector &v, const std::string &name, Vtk::FieldType fieldType=Vtk::FieldType::automatic) |
Add a scalar or vector valued vtk field. More... | |
void | addField (const Vector &v, const std::string &name, Dumux::Vtk::Precision precision, Vtk::FieldType fieldType=Vtk::FieldType::automatic) |
Add a scalar or vector valued vtk field. More... | |
Protected Types | |
using | VelocityOutput = VelocityOutputType |
Protected Member Functions | |
const GridVariables & | gridVariables () const |
const GridGeometry & | gridGeometry () const |
const SolutionVector & | sol () const |
const std::vector< VolVarScalarDataInfo > & | volVarScalarDataInfo () const |
const std::vector< VolVarVectorDataInfo > & | volVarVectorDataInfo () const |
const VelocityOutput & | velocityOutput () const |
bool | verbose () const |
const std::string & | name () const |
Dune::VTK::DataMode | dataMode () const |
Dumux::Vtk::Precision | precision () const |
Dune::VTKWriter< GridView > & | writer () |
Dune::VTKSequenceWriter< GridView > & | sequenceWriter () |
const std::vector< Field > & | fields () const |
|
protectedinherited |
|
inherited |
export type of the volume variables for the outputfields
|
inline |
The constructor.
|
inlineinherited |
Add a scalar or vector valued vtk field.
v | The field to be added. Can be any indexable container. Its value type can be a number or itself an indexable container. |
name | The name of the field |
fieldType | The type of the field. This determines whether the values are associated with vertices or elements. By default, the method automatically deduces the correct type for the given input. |
precision | The output precision of this field (see Dune::VTK::Precision) |
|
inlineinherited |
Add a scalar or vector valued vtk field.
v | The field to be added. Can be any indexable container. Its value type can be a number or itself an indexable container. |
name | The name of the field |
fieldType | The type of the field. This determines whether the values are associated with vertices or elements. By default, the method automatically deduces the correct type for the given input. |
|
inline |
Output a scalar flux variable related to pore throats. This is basically a wrapper for the ParentType's addField method.
f | A function taking a Problem, FluxVariables and FluxVarsCache object and returning the desired scalar |
name | The name of the vtk field |
|
inlineinherited |
Add a velocity output policy.
Methods to conveniently add primary and secondary variables upon initialization Do not call these methods after initialization i.e. not within the time loop
velocityOutput | the output policy |
|
inlineinherited |
Output a scalar volume variable
name | The name of the vtk field |
f | A function taking a VolumeVariables object and returning the desired scalar |
|
inlineinherited |
Add a vector-valued variable
f | A function taking a VolumeVariables object and returning the desired vector |
name | The name of the vtk field |
|
inlineprotectedinherited |
|
inlineprotectedinherited |
|
inlineprotectedinherited |
|
inlineprotectedinherited |
|
inlineprotectedinherited |
|
inlineinherited |
the parameter group for getting parameter from the parameter tree
|
inlineprotectedinherited |
|
inline |
Return a reference to the problem.
|
inlineprotectedinherited |
|
inlineprotectedinherited |
|
inlineprotectedinherited |
|
inlineprotectedinherited |
|
inlineprotectedinherited |
|
inlineprotectedinherited |
|
inline |
Gather and process all required data and write them to a vtk file.
|
inlineprotectedinherited |