Modelling approaches
First it is good to know what approaches could be used in Simcenter Amesim. Below image shows how an example of an hydraulic check valve can be modelled with different approaches

1. Functional component
A built in component that simulates the function of the check valve, without looking at detailed physics.
2. Physical components
Built in components that simulate the involved physics to cause the function.
3. Mathematical approach
If we know how the express the physics using analytical formulas, we can use the control&signal library to apply these formulas.
4. Programming
If we have the knowledge required for the mathematical approach and have some programming experience, we can also use C-code to create a custom submodel.
5. Miscellaneous
There are of course several other approaches available, from using a neural network, transfer functions, response surfaces, or co-simulations with external software(e.g. FMU, Simulink, CFD, FEM, python)
Each option has its use cases, in this example we will use a combination of 2 & 3. We will use physical components where available, to limit the amount of mathematics we have to do ourselves.