Week - 8 Mass Scaling
AIM: To perform the simulation in order to reduce the run time with the help of mass scaling in LS-Dyna.
KEYWORDS: DT2MS, TSSFAC, Timestep, Implicit, Explicit, etc.,
SOFTWARE: LS-Dyna
OBJECTIVE:
1) To learn about the mass scaling Technique to reduce the computational time for the analysis.
2) The limit for the mass scaling is restricted to 8% and simulation has to be completely stable.
3) Finally, we have to run the same model using an implicit solver with necessary changes and compare implicit and explicit runtime.
INTRODUCTION:
Mass-scaling is a term that is used for the process of scaling the element’s mass in explicit simulations to adjust its timestep. The primary motivation is to change (usually increase) the global compute timestep which is limited by the Courant’s stability criteria. LS-DYNA allows two different types of mass-scaling using the DT2MS parameter from *CONTROL_TIMESTEP with the default set to no mass-scaling. When DT2MS is less than zero, LS-DYNA adds a mass of each element whose timestep is below abs(DT2MS) such that the element’s updated DT is equal to abs(DT2MS). When DT2MS is greater than zero, LS-DYNA adds mass to elements whose DT is below abs(DT2MS) and “removes” mass from elements whose DT is greater than zero. DT2MS>0 is seldom used while DTM2<0 is frequently used for overcoming the smallest computed timestep. Care must be taken when using DT2MS<0 to ensure that the added mass does not have an adverse effect on the simulation accuracy. It is common practice to limit the percentage of added mass to less than 5% (at part level) in dynamic simulations. Optionally, users can set END MASS in *CONTROL_TERMINATION to terminate a simulation based on a percentage of added mass based on the total mass of the model. When ENDMAS is greater than zero, LS-DYNA terminates when the percentage of added-mass reaches ENDMAS and a report of up to 20 nodes (sorted in the descending order of its added mass due to mass-scaling) is written to both standard output and D3HSP file. It must be noted that the percentage of added-mass is based on the total mass of the model which included the rigid body, rigid walls, etc… and could be misleading if looked at at the global level. LS-DYNA outputs the percentage of added mass at a component level which is a better indicator of the amount of added mass due to mass-scaling. The concept of mass-scaling for both options of DT2MS is graphically illustrated below.
Anytime you add nonphysical mass to increase the timestep in a dynamic analysis, you affect the results (think of F=m*a). Sometimes the effect is insignificant and in those cases adding nonphysical mass is justifiable. Examples of such cases may include the addition of mass to just a few small elements in a noncritical area or quasi-static simulations where the velocity is low and the kinetic energy is very small relative to the peak internal energy. In the end, it's up to the judgment of analysts to gauge the effect of mass scaling. You may have to reduce or eliminate mass scaling in a second run to gauge the sensitivity of the results to the amount of mass added
1) Timestep Significance:
In the simplest case (small, deformation theory), the time step is controlled by the acoustic wave propagation through the material


In explicit integration, the numerical stress wave must always propagate less than one element width per time step. The time step of an explicit analysis is determined as the minimum stable time step in any one deformable finite element in the mesh. The above relationship is called the Courant-Friedrichs-Lewy (CFL) condition and determines the stable time step in an element.

The CFL condition requires that the explicit time step be smaller than the time needed by the physical wave to cross the element. 0.9 is the timestep scale factor (TSSFAC). Based on the conditions, the time step can be increased to provide faster solution times by artificially increasing the density of the material by using a technique like ( mass scaling, lowering the modulus, or by increasing the element size of the mesh)
2) Mass scaling:
Mass-scaling is a term that is used for the process of scaling the element’s mass in explicit simulations to adjust its timestep. The primary motivation is to change (usually increase) the global compute timestep which is limited by the Courant’s stability criteria Mass scaling is very useful and directly increases the timestep. The concept is simple, Larger Timestep = Lower Solution Time. The manual form of mass scaling is done independently of the automatic mass scaling invoked with DT2MS in *CONTROL_TIMESTEP.
*CONTROL_TIMESTEP: Conventional mass scaling (CMS) (negative value of DT2MS): The mass of small or stiff elements is increased to prevent a very small timestep. Thus, artificial inertia forces are added which influence all eigenfrequencies including rigid body modes. This means this additional mass must be used very carefully so that the resulting nonphysical inertia effects do not dominate the global solution.
Two different types of mass-scaling using the DT2MS parameter from *CONTROL_TIMESTEP
- Negative DT2MS: Mass is added to only those elements whose timestep would otherwise be less than TSSF*(DT2MS). When mass scaling is appropriate.
- Positive DT2MS: Mass is added or taken away from elements so that the timestep of every element is the same. there is no advantage to using this method over the negative DT2MS method and I find it harder to rationalize.
If stability is a problem with the default TSSFAC of 0.9, try 0.8 or 0.7. If you reduce TSSFAC, you can increase |DT2MS| proportionally so that their product, and hence timestep, is unchanged. TSSFAC doesn’t affect the mass scaling percentage.
Mass scaling is no free lunch. For dynamic systems, added mass can affect the response of the system. It is just something to monitor and make an engineering judgment about its effectiveness; time savings versus potential detrimental effects. Increasing the mass too much may cause severe penetration problems and increase the dynamic effect significantly. The results may not be acceptable. In this case, the mass scaling is restricted up to 8%.
Procedure:
Since DTMS and TSSFAC are the important parameters in the *CONTROL_TIMESTEP card that affects the timestep and the runtime of the simulation, so we will change these values in each iteration to obtain an optimized runtime with a stable solution and to make sure mass scaling doesn’t go beyond 8%.
1) Case-1: DT2MS: -3.5E-5 & TSSFAC: 0.9
In the first case, we set the *CONTROL_TIMESTEP card parameters to default values as shown in the image given below.

We run the simulation and get the following output as shown in the image given below.

We get the estimated time: 31 hrs 38 mins and the added mass: 0.
2) Case-2: DT2MS: -3.0E-5 & TSSFAC: 0.9

We run the simulation and get the following output as shown in the image given below.

We get the estimated time: 28 hrs 53 mins and the added mass: 0.
3) Case-3: DT2MS: -2E-5 & TSSFAC: 0.9


We get the estimated time: 28 hrs 12 mins and the added mass: 0.
4) Case-4: DT2MS: -1E-5 & TSSFAC: 0.9


We get the estimated time: 37 hrs 09 mins and the added mass: 0.
5) Case-5: DT2MS: -3.0E-4 & TSSFAC: 0.9


We get the estimated time: 4 hrs 46 mins and the added mass: 7.24 %
6) Case-6: DT2MS: -2E-4 & TSSFAC: 0.9


We get the estimated time: 7 hrs 14 mins and the added mass: 2.725 %
7) Case-7: DT2MS: -1E-4 & TSSFAC: 0.9


We get the estimated time: 14 hrs 28 mins and the added mass: 6.4233 %
8) Case-8: DT2MS: -1.05E-4 & TSSFAC: 0.9


We get the estimated time: 15 hrs 33 mins and the added mass: 10.748 %
9) Case-9: DT2MS: -1.03E-4 & TSSFAC: 0.9


We get the estimated time: 15 hrs 31 mins and the added mass: 8.066 %.
10) Case-10: DT2MS: -1.029E-4 & TSSFAC: 0.9


We get the estimated time: 14 hrs 23 mins and the added mass: 8.005 %
We see that as expected the estimated time (to complete) has reduced by decreasing the DTMS value and If we notice the mass percentage is 8% which have reached its limit value because more than 8% of the mass is not accepted, So further decreases of DT2MS will only increase and the mass percentage of the system. Therefore from the next case, we vary the TSSFAC (Time Scale Factor) to find whether it has any change in the mass percentage.
11) Case-11: DT2MS: -1.029E-4 & TSSFAC: 0.8


We get the estimated time: 16 hrs 44 mins and the added mass: 8.005 %
12) Case-12: DT2MS: -1.029E-4 & TSSFAC: 0.7


We get the estimated time: 19 hrs 33 mins and the added mass: 8.005 %
13) Case-12: DT2MS: -1.029E-4 & TSSFAC: 0.6


We get the estimated time: 22 hrs 19 mins and the added mass: 8.005 %
14) Case-12: DT2MS: -1.029E-4 & TSSFAC: 0.5


We get the estimated time: 25 hrs 19 mins and the added mass: 8.005 %
We see that the time scale factor doesn't change the amount or percentage of mass added as the mass percentage remains the same but the computation time varies inversely according to the Time scale factor.
Implicit Analysis:
Now we will run this same file using an implicit solver. Additional control cards are used to run this simulation in an implicit solver.
- Control cards
1.*CONTROL_IMPLICIT_GENERAL
Activate implicit analysis and define associated control parameters. This keyword is required for all implicit analyses.
- IMFLAG - Implicit/Explicit analysis type flag: 1- implicit analysis.
- DT0 – Initial time step size for implicit analysis (Termination time/100):
- IMFORM - Element formulation flag for seamless spring back: 2 retain original element formulation (default).

2.*CONTROL_IMPLICIT_SOLUTION
Use of these cards to specify whether a linear or nonlinear solution is desired.
- NSOLVER – Solution method for implicit analysis: 12 For Non-linear problem.
- ILIMIT-Iteration limit between automatic stiffness reformations: 11
- MAXREF- Stiffness reformation limit per time step: 15
- DCTOL- Displacement relative convergence tolerance:0.001
- DNORM- Displacement norm for convergence test: 2 (Increment as a function of total displacement).

3.*CONTROL_IMPLICIT_SOLVER
The linear equation solver performs the CPU-intensive stiffness matrix inversion.
LSOLVR: Parallel multi-frontal sparse solver (default).

4. *CONTROL_IMPLICIT_AUTO:
IAUTO: 1 - automatically adjust the time step size
ITEOPT: Optimum equilibrium iteration count per time step
ITEWIN: Allowable iteration window. If the iteration count is within ITEWIN iterations of ITEOPT, the step size will not be adjusted.

RESULT & DISCUSSION:
1) The histogram plots were made for DT2MS vs Estimated Time and TSSFAC vs Estimated Time.
2) The DT2MS vs Estimated Time shows that when we add mass to the model using the DT2MS as the value of it increases the estimated simulation time decreases gradually.


3) The TSSFAC vs Estimated Time shows that when we don't vary the DT2MS value and change the TSSFAC values which don't add mass to the model as seen from the above cases the mass percentage remains the same because of which the estimated simulation time increases.


Comparison between explicit and implicit runtime:
As we know, Explicit FEM is used to calculate the state of a given system at a different time from the current time. In contrast, an implicit analysis finds a solution by solving an equation that includes both the current and later states of the given system. In Implicit analysis, each time step has to converge, but we can set pretty long time steps and it is based on iterations. Explicit on the other hand doesn’t have to converge each time step, but for the solution to be accurate time steps must be small. Though the running time for implicit analysis is shorter than the explicit analysis method because the timestep is defined larger in implicit compare to explicit analysis and we have used constant timestep formulation.
CONCLUSION:
1) We have learned about the mass scaling Technique to reduce the computational time for the analysis.
2) We have also bought mass scaling percentage to 8% by varying the DT2MS values and then we have also found that TSSFAC (Time Step Factor) doesn't depend on the adding mass to the model.
3) After, that we have run the analysis using implicit control cards which gives us the result that the implicit analysis is based on iterations and doesn't depend on mass scaling.
4) Finally, we also compared explicit and implicit analysis, also we have plotted the histogram for DT2MS vs Estimated Time and TSSFAC vs Estimated Time.