Karamelo  714599e9
Parallel Material Point Method Simulator
Input Class Reference

Detailed Description

This class reads the input file and execute the instructions present in it line by line.

This class is the back bone of the code as it is the interface between the user and the code (through the input file). Its member functions are design in order to be able to generate variables and execute functions present in the input file. This class has Pointers as parent in order to be accessible from anywhere within the MPM class.

+ Inheritance diagram for Input:

Public Member Functions

void file ()
 Reads the input file line by line and pass it to parsev().
 
double parse (string)
 Deprecated function.
 
class Var parsev (string)
 Parse an input text line. More...
 

Public Attributes

char ** arg
 Parsed args for command.
 
CommandCreatorMap * command_map
 Map of the commands listed in style_command.h.
 
int narg
 Number of command args.
 
map< string, class Var > * vars
 

Member Function Documentation

◆ parsev()

Var Input::parsev ( string  str)

Parse an input text line.

This function translates the input file syntax, either mathematical expressions or functions, to C++ and evaluate or execute them.

Member Data Documentation

◆ vars

map<string, class Var>* Input::vars

List of global user variables. These variables are those created by the user through the input file.


The documentation for this class was generated from the following files: