#include <spdlog/spdlog.h>
#include <tclap/CmdLine.h>
#include <vtkXMLUnstructuredGridReader.h>
#include <vtkXMLUnstructuredGridWriter.h>
#include <fstream>
#include <nlohmann/json.hpp>
#include "BaseLib/FileTools.h"
#include "BaseLib/Logging.h"
#include "ComputeNaturalCoordsAlgorithm.h"
#include "InfoLib/GitInfo.h"
Go to the source code of this file.
Functions | |
vtkSmartPointer< vtkUnstructuredGrid > | readGrid (std::string const &input_filename) |
void | writeGrid (vtkUnstructuredGrid *grid, std::string const &output_filename) |
void | checkJSONEntries (nlohmann::json const &data, size_t number_of_anchors) |
AU::ComputeNaturalCoordsResult | readJSON (TCLAP::ValueArg< std::string > const &input_filename) |
int | main (int argc, char **argv) |
void checkJSONEntries | ( | nlohmann::json const & | data, |
size_t | number_of_anchors ) |
Definition at line 55 of file CreateAnchors.cpp.
References OGS_FATAL.
Referenced by readJSON().
int main | ( | int | argc, |
char ** | argv ) |
Definition at line 213 of file CreateAnchors.cpp.
References ApplicationUtils::computeNaturalCoords(), OGS_FATAL, GitInfoLib::GitInfo::ogs_version, readGrid(), readJSON(), BaseLib::setConsoleLogLevel(), ApplicationUtils::ComputeNaturalCoordsResult::success, ApplicationUtils::toVTKGrid(), and writeGrid().
vtkSmartPointer< vtkUnstructuredGrid > readGrid | ( | std::string const & | input_filename | ) |
Definition at line 25 of file CreateAnchors.cpp.
References BaseLib::IsFileExisting(), and OGS_FATAL.
Referenced by main().
AU::ComputeNaturalCoordsResult readJSON | ( | TCLAP::ValueArg< std::string > const & | input_filename | ) |
Definition at line 111 of file CreateAnchors.cpp.
References ApplicationUtils::ComputeNaturalCoordsResult::anchor_cross_sectional_area, ApplicationUtils::ComputeNaturalCoordsResult::anchor_stiffness, checkJSONEntries(), ApplicationUtils::ComputeNaturalCoordsResult::initial_anchor_stress, ApplicationUtils::ComputeNaturalCoordsResult::maximum_anchor_stress, OGS_FATAL, ApplicationUtils::ComputeNaturalCoordsResult::real_coords, and ApplicationUtils::ComputeNaturalCoordsResult::residual_anchor_stress.
Referenced by main().
void writeGrid | ( | vtkUnstructuredGrid * | grid, |
std::string const & | output_filename ) |
Definition at line 47 of file CreateAnchors.cpp.
Referenced by main().