preCICE v3.2.0
|
Track and output transient integral data on a mesh. More...
#include <WatchIntegral.hpp>
Public Member Functions | |
WatchIntegral (mesh::PtrMesh meshToWatch, const std::string &exportFilename, bool isScalingOn) | |
Constructor. | |
void | exportIntegralData (double time) |
Writes one line with data of the integral over the mesh into the output file. | |
void | initialize () |
Adds surface area information based on mesh connectivity. | |
Private Member Functions | |
Eigen::VectorXd | calculateIntegral (double time, const mesh::PtrData &data) const |
double | calculateSurfaceArea () const |
Private Attributes | |
logging::Logger | _log {"impl::WatchIntegral"} |
mesh::PtrMesh | _mesh |
io::TXTTableWriter | _txtWriter |
std::vector< mesh::PtrData > | _dataToExport |
bool | _isScalingOn |
Track and output transient integral data on a mesh.
Calculation of integral depends on connectivity information of mesh and given scaling option. If scale with area option is true, vertex data is weighted by area and summed up, otherwise, vertex data is directly summed up.
Definition at line 24 of file WatchIntegral.hpp.
precice::impl::WatchIntegral::WatchIntegral | ( | mesh::PtrMesh | meshToWatch, |
const std::string & | exportFilename, | ||
bool | isScalingOn ) |
Constructor.
[in] | meshToWatch | Mesh to be watched. |
[in] | exportFilename | output file name |
[in] | isScalingOn | whether the data will be scaled with area or not |
Definition at line 15 of file WatchIntegral.cpp.
|
private |
|
private |
Definition at line 127 of file WatchIntegral.cpp.
void precice::impl::WatchIntegral::exportIntegralData | ( | double | time | ) |
Writes one line with data of the integral over the mesh into the output file.
Definition at line 59 of file WatchIntegral.cpp.
void precice::impl::WatchIntegral::initialize | ( | ) |
Adds surface area information based on mesh connectivity.
Definition at line 46 of file WatchIntegral.cpp.
|
private |
Definition at line 51 of file WatchIntegral.hpp.
|
private |
Definition at line 53 of file WatchIntegral.hpp.
|
private |
Definition at line 45 of file WatchIntegral.hpp.
|
private |
Definition at line 47 of file WatchIntegral.hpp.
|
private |
Definition at line 49 of file WatchIntegral.hpp.