-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathNLargs.h
More file actions
56 lines (45 loc) · 1.57 KB
/
Copy pathNLargs.h
File metadata and controls
56 lines (45 loc) · 1.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
// $Id$
//==============================================================================
//!
//! \file NLargs.h
//!
//! \date Nov 20 2024
//!
//! \author Knut Morten Okstad / SINTEF
//!
//! \brief Pre-parsing of input files for Finite Deformation applications.
//!
//==============================================================================
#ifndef _NL_ARGS_H
#define _NL_ARGS_H
#include "SIMargsBase.h"
#include <vector>
//! \brief Enum defining various solution drivers.
enum Algorithm { ARCLEN, STATIC, GENALPHA, OLDHHT, NEWHHT };
/*!
\brief Class for input file pre-parsing and command-line argument values.
*/
class NLargs : public SIMargsBase
{
public:
//! \brief Default constructor.
explicit NLargs() : SIMargsBase("finitedeformation") {}
//! \brief Parses a command-line argument.
virtual bool parseArg(const char* argv);
protected:
//! \brief Parses a data section from an XML element.
virtual bool parse(const tinyxml2::XMLElement* elem);
private:
//! \brief Parses the formulation tag from an XML element.
void parseFormulation(const tinyxml2::XMLElement* elem);
//! \brief Updates the problem formulation options.
void setFormulation(int form, int pOrd);
public:
std::vector<int> options; //!< Problem formulation options
Algorithm algor = STATIC; //!< Solution algorithm driver flag
bool checkRHS = false; //!< Check for right-hand-side patch orientation?
bool fixDup = false; //!< Check and resolve duplicated nodes?
char printMax = false; //!< Print out max field values?
bool dNodeMap = false; //!< Dump node mapping to HDF5 file?
};
#endif