v0.16.3
Loading...
Searching...
No Matches
Classes | Functions | Variables
ageing_field_tags.cpp File Reference

Write the history tags of the Amentum ageing UMAT on mesh vertices, from text files of nodal values indexed by vertex GLOBAL_ID. More...

#include <MoFEM.hpp>
#include <cmath>
#include <cstring>
#include <filesystem>
#include <fstream>
#include <iomanip>
#include <sstream>
#include <unordered_set>

Go to the source code of this file.

Classes

struct  AgeingFieldTags
 
struct  AgeingFieldTags::Quantity
 

Functions

static bool isStepTag (const std::string &name, const std::string &prefix)
 
int main (int argc, char *argv[])
 

Variables

static char help []
 

Detailed Description

Write the history tags of the Amentum ageing UMAT on mesh vertices, from text files of nodal values indexed by vertex GLOBAL_ID.

See doc/development/field_tags.md and doc/development/field_tags_tool.md.

Definition in file ageing_field_tags.cpp.

Function Documentation

◆ isStepTag()

static bool isStepTag ( const std::string &  name,
const std::string &  prefix 
)
static

True if name is <prefix>_<k>, k an unsigned integer.

Definition at line 26 of file ageing_field_tags.cpp.

26 {
27 const auto start = prefix.size() + 1;
28 return name.size() > start && name.compare(0, prefix.size(), prefix) == 0 &&
29 name[prefix.size()] == '_' &&
30 std::all_of(name.begin() + start, name.end(),
31 [](unsigned char c) { return std::isdigit(c); });
32}
std::string name
const double c
speed of light (cm/ns)

◆ main()

int main ( int  argc,
char *  argv[] 
)

Definition at line 503 of file ageing_field_tags.cpp.

503 {
504 MoFEM::Core::Initialize(&argc, &argv, (char *)0, help);
505
506 try {
507 moab::Core mb_instance;
508 moab::Interface &moab = mb_instance;
509 MoFEM::Core core(moab);
510 MoFEM::Interface &m_field = core;
511
512 MOFEM_LOG_CHANNEL("WORLD");
513 MOFEM_LOG_TAG("WORLD", "ageing_field_tags");
515 }
517
519
520 return 0;
521}
static char help[]
#define CATCH_ERRORS
Catch errors.
#define CHKERR
Inline error check.
#define MOFEM_LOG_TAG(channel, tag)
Tag channel.
#define MOFEM_LOG_CHANNEL(channel)
Set and reset channel.
MoFEMErrorCode runProblem()
Core (interface) class.
Definition Core.hpp:83
static MoFEMErrorCode Initialize(int *argc, char ***args, const char file[], const char help[])
Initializes the MoFEM database PETSc, MOAB and MPI.
Definition Core.cpp:68
static MoFEMErrorCode Finalize()
Checks for options to be called at the conclusion of the program.
Definition Core.cpp:123
Deprecated interface functions.

Variable Documentation

◆ help

char help[]
static
Initial value:
=
"Write the nodal history tags MED_IRRA_ALLIRRA_<k>, MED_TEMP_ALLNEUT_<k>\n"
"and MED_CORR_ALLNEUT_<k> of the Amentum ageing UMAT from files\n"
"<fvs_dir>/<prefix><label>.fvs with lines \"GLOBAL_ID, value\".\n\n"

Definition at line 20 of file ageing_field_tags.cpp.