Subroutine Type |
Utility/Data Access |
||||||||||
Definition |
DATOUT is a utility subroutine that creates all requested output files after a simulation is performed by ANALYS. The specific files that are generated depend on the options chosen in the ResOutput command in the MotionSolve XML input file. |
||||||||||
Calling Syntax |
Fortran CALL DATOUT (ISTAT)
C/C++: c_datout (int* istat);
Python: istat = py_datout()
MATLAB istat = m_datout() |
||||||||||
Input |
none |
||||||||||
Output |
istat |
integer |
A flag that returns the status of the call to DATOUT. ISTAT can have the following values: 0 = Success |
||||||||
Comments |
|
||||||||||
Example |
def consub (par, npar):
#Purpose of the CONSUB #This CONSUB performs 2 simulations: # 1. gravity = 1g (surface of Earth) # 2. gravity = 0.38g (surface of Mars)
# Behavior on Earth istat = py_datout() status = py_analys (“TRANSIENT”, "Simulation on Earth", 0.0, 1.0, 1)
# Behavior on Mars command = "ACCGRAV/IGRAV=0, JGRAV=0, KGRAV=-3.72742" istat = py_modify (command) istat = py_datout() status = py_analys (“TRANSIENT”, "Simulation on Mars", 1.0, 2.0, 1)
return status |
See Also: