Data Structure: Parameter_definition |
|
Description |
Read and evaluate expressions in data file. |
Usage |
Parameter_definition NUM=ival where ival is the data structure number |
Description |
Overview Parameter_definition may be used to define parameters (variables) and their corresponding mathematical expressions that may be used as input values in the data file. The defined parameters may be used in the matematical expressions to define further parameters. This allows for example to parameterize the model geometry dimensions (size) based on a given parameter value (e.g. a wellbore model may have its geometry defined as a funtion of the wellbore radius so that for any input radius value the model preserves the same aspect ratio). |
Parameter_names List of parameter names |
Usage |
|||||||||||||||
|
|||||||||||||||
Description |
|||||||||||||||
Defines the list of parameter names. This input is compulsory. Each parameter name corresponds to each parameter value defined by user. Similar to Expression_names, there should be no space within Parameter_names. We can however replace each space with an underscore. For example, Blockheight is not valid. Instead, we should use Blockheight. Parameter_names is not case sensitive. We can use a combination of upper and lower cases to define the names.
|
Parameter_values Parameter values |
Usage |
|||||||||||||||
|
|||||||||||||||
Description |
|||||||||||||||
Defines the list of values corresponding to entry in Parameter_names. This input is compulsory. The data must be numeric and cannot be defined as function of any parameter or expression names.
|
Expression_names List of expression names |
Usage |
|||||||||||||||
|
|||||||||||||||
Description |
|||||||||||||||
Defines the list of expression names. This input is optional. Each expression name corresponds to each expression defined by user. Similar to Parameter_names, there should be no space within Expression_names. We can however replace each space with an underscore. For example, Blockheight is not valid. Instead, we should use Blockheight. Expression_names is not case sensitive. We can use a combination of upper and lower cases to define the names.
|
Expression List of expressions |
Usage |
|||||||||||||||
|
|||||||||||||||
Description |
|||||||||||||||
Defines the list of expressions. This input is compulsory if the keyword Expression_names is present. Expression may also be formed as function of other parameter names. This is useful when we want to repeatedly use the same expression in the data file. For example, if we have Height as one of the parameter names, then we may define a new expression Blockheight as Height+1. No space is allowed within expressions. Valid symbols are the following: •Arithmetic operators: +,-,*,/, ^ •Delimiters: (), {} •Scientific notation: e, E, d, D •Exponential function: Exp() •Trigonometric function: Sin(), Cos(), Tan(). Note that the angle must be input in degrees. •Logarithmic function: Ln(), Log() For example, we can process this expression: 4e-02*(52-Exp(0.5))/{10*2/3}. Note that the brackets ( and { can be used interchangeably, and so are ) and }.
|