![]() |
OGS
|
|
#include <tclap/CmdLine.h>#include <fstream>#include "BaseLib/Logging.h"#include "BaseLib/MPI.h"#include "BaseLib/TCLAPArguments.h"#include "InfoLib/GitInfo.h"#include "MeshLib/Elements/Element.h"#include "MeshLib/IO/readMeshFromFile.h"#include "MeshLib/IO/writeMeshToFile.h"#include "MeshLib/Mesh.h"#include "MeshLib/Node.h"Go to the source code of this file.
Functions | |
| std::vector< double > | getSurfaceIntegratedValuesForNodes (const MeshLib::Mesh &mesh, std::string const &prop_name) |
| int | main (int argc, char *argv[]) |
| std::vector< double > getSurfaceIntegratedValuesForNodes | ( | const MeshLib::Mesh & | mesh, |
| std::string const & | prop_name ) |
Returns a vector of values where each value is associated with a particular node. Since a node is part of elements, it is possible to assign an area per element to this node. Each value of the return vector is the sum of the assigned area (per element) multiplied by the property value of the element.
| mesh | a surface mesh containing a property prop_name assigned to cells |
| prop_name | name of the cell based property within the mesh |
Definition at line 27 of file createNeumannBc.cpp.
References MeshLib::Cell, ERR(), MeshLib::Properties::existsPropertyVector(), MeshLib::Mesh::getDimension(), MeshLib::Mesh::getElementsConnectedToNode(), MeshLib::Mesh::getNodes(), MeshLib::Mesh::getProperties(), MeshLib::Properties::getPropertyVector(), and INFO().
Referenced by main().
| int main | ( | int | argc, |
| char * | argv[] ) |
Definition at line 70 of file createNeumannBc.cpp.
References MeshLib::getBulkIDString(), getSurfaceIntegratedValuesForNodes(), BaseLib::initOGSLogger(), BaseLib::makeLogLevelArg(), MeshLib::Node, GitInfoLib::GitInfo::ogs_version, MeshLib::IO::readMeshFromFile(), WARN(), and MeshLib::IO::writeMeshToFile().