RVResult
Model ElementRVResult is an object that contains all the simulation results associated with a single RV. At each output time,
Class Name
RVResult
- Entity
- Component Names
- RV
- RVAL, RVAL1
- At T=0, for each RV in the model:
- An RVResult object is created.
- The object is stored in the SimulationResults container object.
- At each output time (including T=0):
- For each RV in the model:
- The RVAL and RVAL1 results are appended to the RVResult object.
- For each RV in the model:
- Thus, at the end of the simulation, the SimulationResults object is fully “populated.”
Usage
See SimulationResults.
Example
Demonstrate the use of RVResult to create plots from MotionSolve results.
- Perform a dynamic simulation from 0 to 2 seconds with 200 output steps.
- Extract the time history for the RVAL component of RV response1.
- Plot the RVAL1 time history in matplotlib.
# Perform a simulation
run = M.simulate(type=”DYNAMICS”, end=2, steps=200, returnResults=True)
# Get the RV data from the run object
rv = run.getObject (model.rv68)
# Extract the time and RVAL1 signals
times = req.getComponent (“times”)
RV1 = req.getComponent ("RVAL1")
# Plot the RVAL signal
import matplotlib.pyplot as plt
plt.plot (times, FZ)
plt.title (“RVAL1 vs. Time”)
plt.xlabel (“Time”)
plt.ylabel (“Power [KW]”)
plt.grid (True)
plt.show ()
Comments
- See Properties for an explanation about what properties are, why they are used, and how you can extend these.
- The SimulationResults may be queried to get access to the time histories of its various components. See the examples above.