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:
Andreas Lauser 2014-08-20 14:14:00 +02:00
parent 446cf3d3d2
commit 57460a71b2

View File

@ -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.
*