Documentation
Formulas are one possibility, besides tables, that allow to specify a variable or parameter (velocity, temperature, etc.) as a function of other independent variables ( e.g. time or distance). You can add mathematical operations involving different variables, which gives you the chance to easily implement any distribution with no need to add a great number of discrete values in a table.
Not every variable is allowed to be defined as a function of other variables. If formulas are allowed, you can find the icon of a graph next to the variable you want to define. In Figure 1, the Fixed value boundary condition can be defined by entering the displacement as a formula.
Once you click on the icon, a dialogue box appears to define the table. However, click on the ‘Formula’ tab next to Table and access the interface where you can input your data as shown below:
Figure 1 shows an example input formula for an inlet velocity boundary condition. Three velocity components can be defined in this case either as a single value or a formula. Different units are available next to each component if desired.
The space variables x, y, z or time variable t that can be included in the formula. Furthermore, all the numbers, mathematical operators, trigonometric functions, exponential, and logarithmic functions are also available. Please note that for the sin, cos, and tan functions, the angles are always given in radians.
Note
It is also possible to add conditional statements like <, >, = useful for piecewise functions.
Following documentation will help you get more insight into the applications of the formula feature in SimScale:
Last updated: August 26th, 2022
We appreciate and value your feedback.
Sign up for SimScale
and start simulating now