How to make a parameterized model

1. Main steps

  • Import Example

  • Make a new environement

  • Add \(H_{s}\), \(T_{p}\) and seed as variables

  • Create a new condition that can be used in a workflow

1.1. Import example

  • Import the example

fig1
  • In the left window, you can see the Riflex task for the Flexible Riser

fig2

Open in 3D-view : Right click on task and chose Open 3D View

fig3
arrow right
fig4

1.2. Make a new environment

fig5
  • Give the environment ENV2 a new name using rename

  • The new environment is called irrwave in this example

fig5a
arrow right
fig5b
  • Click on irrwave

  • Choose Jonswap 3-parameter wave spectrum

fig6
arrow right
fig7

1.3. Add Hs, Tp and seed as variables

  • Right click on Significant wave height and peak period and choose Set as variable

  • Choose OK if you are pleased with the name of the variable or change the variable name and then choose OK

fig8a
arrow right
fig8b
  • The cell is pink if the values are replaced by variables

fig9
  • Add a value and a description

fig10

In the folder Calculation parameters > Dynamic calculation

fig11
arrow down
fig12

1.4. Create a new condition that can be used in a workflow

  • Right click on Condition, choose New > Conditon

fig13
arrow down
fig14
  • Remove variables to make them available to be changed in a workflow

fig15a
arrow right
fig15b
arrow right
fig15c