AmesimKnowledge

1d-3d-cae

Simcenter Amesim "UserCosim" API functions and parameters

Parameter Functions involved [IN/OUT type] Example value Meaning
filename loadamesimdll_ [IN] char * model_.dll Simcenter Amesim model compiled as a DLL file
dn all functions [IN] int number returned by loadamesimdll_ DLL number
numinputs ameinitsizes_, ameinitmodel_, amedoastep_ [IN OUT] int 3 inputs expected
numoutputs ameinitsizes_, ameinitmodel_, amedoastep_ [IN OUT] int 3 outputs expected
numstates ameinitsizes_ [OUT] int - N.A.
numimplicits ameinitsizes_ [OUT] int - N.A.
dt ameinitmodel_ [IN] double 0.0001 Maximum step size step size for cosimulation [unit: s]
printinter ameinitmodel_ [IN] double = dt Output interval for the Simcenter Amesim result file
tol ameinitmodel_ [IN] double try 10-5 Tolerance value used in error control
errtype ameinitmodel_ [IN] int 0 Mixed type error control
writelevel ameinitmodel_ [IN] int 2 Monitor time: no output
disconpr ameinitmodel_ [IN] int 0 No extra discontinuity printouts
runstats ameinitmodel_ [IN] int 0 No run statistics
runtype ameinitmodel_ [IN] int 8 Dynamic run
solvertype ameinitmodel_ [IN] int 0 Variable step solver
t ameinitmodel_, amedoastep_ [IN] double initialize at 0.0, then set next time steps Time [unit: s]
inputs ameinitmodel_, amedoastep_ [IN] double * 3 values applied on [t-dt, t] interval flow rates at port 1, 2, 3 [unit: L/min]
outputs ameinitmodel_, amedoastep_ [OUT] double * 3 values at time t pressure at port 1, 2, 3 [bar]

Source: https://docs.sw.siemens.com/en-US/doc/254352342/PL20250521841123434.amesim_collection.CFD_Methodology/xid1179060 · retrieved 2026-07-17