mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
I/O: add support to output tensorial quantities
so far, it is only fully implemented for the VTK format. Because Dune has some deficits in its VTK support for tensors, these quantities are treated as multiple column vectors. Wake me up when I am older...
This commit is contained in:
parent
446cf3d3d2
commit
57460a71b2
@ -132,6 +132,7 @@ class EclipseWriter : public BaseOutputWriter
|
||||
|
||||
typedef BaseOutputWriter::ScalarBuffer ScalarBuffer;
|
||||
typedef BaseOutputWriter::VectorBuffer VectorBuffer;
|
||||
typedef BaseOutputWriter::TensorBuffer TensorBuffer;
|
||||
|
||||
friend class EclipseWriterHelper<TypeTag, GridManager>;
|
||||
|
||||
@ -202,6 +203,15 @@ public:
|
||||
"The EclipseWriter can only write element based quantities!");
|
||||
}
|
||||
|
||||
/*
|
||||
* \brief Add a vertex-centered tensor field to the output.
|
||||
*/
|
||||
void attachTensorVertexData(TensorBuffer &buf, std::string name)
|
||||
{
|
||||
OPM_THROW(std::logic_error,
|
||||
"The EclipseWriter can only write element based quantities!");
|
||||
}
|
||||
|
||||
/*!
|
||||
* \brief Add a scalar quantity to the output.
|
||||
*
|
||||
@ -226,6 +236,15 @@ public:
|
||||
"Currently, the EclipseWriter can only write scalar quantities!");
|
||||
}
|
||||
|
||||
/*
|
||||
* \brief Add a element-centered tensor field to the output.
|
||||
*/
|
||||
void attachTensorElementData(TensorBuffer &buf, std::string name)
|
||||
{
|
||||
OPM_THROW(std::logic_error,
|
||||
"Currently, the EclipseWriter can only write scalar quantities!");
|
||||
}
|
||||
|
||||
/*!
|
||||
* \brief Finalizes the current writer.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user