The following are tips for running an Interactive Simulation.
If you simulate your model once, then stop the simulation and select the Simulation Start tool again
• without selecting the Reset tool, the simulation picks up from where it left off and continues on.
If you want to pick up from where you left off, it is more convenient to set a simulation’s time interval using the Duration option instead of the End Time option. You can use Duration with any value because it adds an incremental time on to whatever was the end time of the last simulation. Using the End option, however, you must be careful to set the end time to a number greater than the end time of the earlier simulation.
The model configuration that Adams/View calculates at time 0.0 may be different from your initial design configuration. If Adams/View finds any conflicts or inconsistencies in the way you built your model at your design configuration, it tries to reposition the problematic modeling objects at time 0.0
• to remove the inconsistencies before the actual simulation begins.
For more information on how to detect conflicts or inconsistencies in your model, see Verifying Your Model.
Give careful consideration to the output step size you specify. If you specify an output step size that is too large, you may not be able to visualize higher frequencies of response. If you specify an output step size that is too small, you could end up putting an artificial governor on Adams/Solver, forcing it to use an internal solution step that is smaller than it really has to be. This, in turn, would increase the
• time it would take Adams/View to perform the simulation.
The size of the output time step governs the highest frequency of response that you will be able to visualize for your simulation. A rough rule-of-thumb is to use at least 5 to 10 output steps per cycle of the response that you expect. To get a better estimate of the expected response, you might want to investigate the use of the optional Adams/Linear product, which can calculate the natural frequencies and mode shapes for your model. For additional information, see the LINEAR command in the
Adams/Solver online help.
About Adjusting Your Model Before Simulation
Before you begin your Simulation, you may want to do one or more preliminary operations to help ensure a better simulation. You can do any of the following:
Check to see if you have the expected number of movable parts and the expected number and type of
• constraints in your model.
Determine the total number of system Degrees of freedom (DOF) and which, if any, constraint
• equations are redundant. Learn more.
Check to see if any constraints are broken or incorrectly defined and, if so, perform an Initial conditions • simulation on your model to try to correct these broken joints. Learn more.
Perform a static simulation to move your model into an equilibrium configuration immediately before
• performing a dynamic simulation to reduce some of the initial, transient system response. Learn more
Calculate the natural frequencies of your model as linearized about a particular operating
• configuration. See LINEAR command for more information
Best Practices
This section contains general tips on advanced modeling with Adams/Solver.
• Discontinuities • Units • Dummy Parts • Joints • Motions • Forces • Contacts • Subroutines • Simulation/Integrators • Debugging • Miscellaneous Tips
Discontinuities
• Discontinuities are the root cause of most simulation problems. Avoid them. • Examples of discontinuous functions: MIN, MAX, DIM, MOD, IF.
• Discontinuous displacements and velocities cause corrector and integrator failures. • Discontinuous accelerations cause integration failures (requires infinite force). • Discontinuous forces cause corrector failures.
Units
• Widely separated magnitudes in a matrix can cause numeric difficulties (conditioning problems). • Be careful when using inconsistent units.
Choose units so that model states (displacements and velocities) are reasonable values. For example,
• choosing \"mm\" for displacements of a rocket which travels thousands of kilometers is a poor choice. • Choose units so that stiffness values are not very large. • Choose time units appropriate to the phenomena being studied.
Dummy Parts • A dummy part is any part with zero or very small mass.
• Sometimes dummy parts are useful; but generally, avoid using them.
Avoid connecting dummy parts with compliant connections (BEAMs, BUSHINGs, and so on). If the mass of the dummy part = 0, then the acceleration, a = F/m = F/0 = infinite. Even if the mass is very small, a = F/m = very large number. Therefore, small masses/moments of inertia introduce high
• frequencies into the system, which is usually undesirable since it has detrimental effects on the solver.
If you must use dummy parts, then constrain all DOF, since with no DOF for the dummy part, a=F/m
• is not an issue.
• Dummy parts should be massless; 0.0 (or unassigned), not 1e-20.
Joints
Avoid using FIXED joints. A FIXED joint adds equations to your system that aren’t necessary when
• two or more parts can be combined or merged into a single part.
Avoid using many FIXED joints to lock parts to ground. Enormous torques may develop due to large
• moment arms.
If you must lock something to ground with a FIXED joint, consider assigning it a very large
mass/inertia so that it can behave like ground, or consider merging it to ground (for more information,
• see Simcompanion Knowledge Base Article KB8013580).
When possible, create a FIXED joint at the center-of-mass (cm) of the lightest part, to minimize the
• reaction forces/torques.
Avoid redundant constraints. Adams eliminates them by looking at pivots in a constraint Jacobian,
• which are in no particular order. As a result, the physical meaning may be disregarded.
Motions
• Ideally, motions should impose continuous accelerations. • Avoid using splines in a motion (function based on time is ideal).
If you must use splines as motion, use their velocity form (see Simcompanion Knowledge Base Article
• KB8015319 for more information). This is true for both GSTIFF and SI2_GSTIFF integrators. • Avoid using motion as a function of variables (that is, states).
In general, cubic splines (CUBSPL) may work better on motions than the Akima. The derivatives of the cubic are better than those of the Akima, so they’re more useful in forces than in motions (see
• Simcompanion Knowledge Base Article KB8013252 for more information).
Forces • If using data, approximate forces with smooth, continuous splines.
• Don’t define a spring damper with spring length=0.
• Make sure velocities are correct in force expressions. For example, in this damping function:
-c*vx(i,j,j )
the 4th term is missing --^
The 4th term defines the reference frame in which the time derivatives are taken, and this may be important. Contacts
Contacts should penetrate before statics. Models with impacts should have slight penetration in model
• position when doing statics.
All tires should penetrate the road. Models with tires should have slight penetration in model position
• when doing statics. For example, if only rear tires penetrate, the static position could be a handstand.
Contact properties are model dependent. See the CONTACT statement, and Simcompanion Knowledge Base Article KB8015613 for a starting point. Adjustment of the properties to match experimental
• results is expected.
Subroutines
• If possible, use an Adams function over a subroutine.
• If you receive errors in your model, eliminate user subroutines so they’re not the source of the errors. • Verify that your compiler is compatible with the current version of Adams.
Simulation/Integrators • Perform initial static first, when applicable. Note that a static solution may be more difficult to find
than a dynamic solution. If you care only about the dynamic solution and cannot find static equilibrium, then either increase your error tolerance or forget about the static simulation.
• 15-20 static iterations is suspect.
• If GSTIFF won't start, it’s most likely a problem with initial conditions.
Don't let the integrator step over important events. Short duration events like an impulse can be
• captured by setting maximum time step, HMAX, to value less than impulse width. • Use HMAX so that Adams/Solver acts as a fixed-step integrator.
Spikes in results output may come from changes in step size. Reduce HMAX or try setting
• HINIT=HMAX. Run with SI2 instead.
Adams/Solver uses a body 3-1-3 rotation sequence (psi, theta, phi). Theta=0d (or 180d) is bad (Euler
• singularity). If the z-axis of part cm is parallel to z-axis of ground, there will be a Euler singularity.
For Euler Singularities, Theta=90D will have good pivots. Models will run better, and won't act like
• there is a discontinuity.
Truncation (or round-off) errors accumulate when you let MAXIT go larger than 6. The theory of
• GSTIFF says 2-3 iterations is desirable; it breaks down if it uses more than 4 or 5.
Debugging
• Try to understand mechanism from a physical standpoint.
Use building blocks of concepts that worked in the past. Add enhancements to the model using
• crawl-walk-run approach.
• Test with a small model to isolate problems. • Have graphics for visualizing motion.
• Look at damping terms as a source of errors. Incorrect sign and missing terms are typical mistakes. • Turn on DEBUG/EPRINT.
• Turn gravity off, since it can accentuate modeling errors.
Models should have no warnings during simulation (for example, redundant constraints, splines, and
• so on).
• Understand numerical methods (for example, understand your integrator).
• Look for results which become very large in magnitude; this could indicate a discontinuity.
Miscellaneous Tips
Avoid very large numbers and very small numbers. Be wary when your model contains numbers like
• 1e+23 or 1e-20.
Choose the right set of units. Length units of millimeters may not be appropriate if you’re modeling an
• aircraft landing on runway.
Use a reasonable time scale. If duration of dynamic event time is short, consider using milliseconds
• units.
• Extend the range of spline data beyond the range of need.
Don’t write function expressions that can potentially divide by zero (for example, use the MAX
• function to prevent this: function =8/MAX(0.01,your_function). • Add damping so frequencies can dissipate.
Avoid very high damping rates. The high damping cause a rapid decay in response, which is difficult
• for an integrator to follow.
• Avoid toggles, dual solutions, or bifurcations.
Don’t use 1.0 for the exponent in IMPACT or BISTOP functions. This creates a “corner” (that is, a
• non-smooth function). Instead, try 2.2 for the exponent.
因篇幅问题不能全部显示,请点此查看更多更全内容
Copyright © 2019- huatuo9.cn 版权所有 赣ICP备2023008801号-1
违法及侵权请联系:TEL:199 18 7713 E-MAIL:2724546146@qq.com
本站由北京市万商天勤律师事务所王兴未律师提供法律服务