Published by Suri Bala March 11th, 2007
in LS-DYNA Bytes.
A powerful feature of LS-DYNA v970 and beyond that has yet to gain widespread popularity is the *CASE keyword. Here are two examples to highlight the use of *CASE.
Sequential and Independent Simulations
Ex: Head Impact (FMVSS 201)
*keyword
$
$ Impact 1
$
*case_begin_1
*title
position 1 impact
*include
vehicle_model.i
*include
head_position_1.i
*case_end_1
$
$ Impact 2
$
*case_begin_2
*title
position 2 impact
*include
vehicle_model.i
*include
head_position_2.i
*case_end_2
$
$ ....
*end
|
Sequential and Dependent Simulations
Ex: Cumulative Bumper Damage
*keyword
$
$ Impact 1
$
*case_begin_1
*title
position 1 impact
*include
vehicle_model.i
*include
impactor_position.i
*case_end_1
$
$ Impact 2
$
*case_begin_2
r=1.d3dump01
*title
position 2 impact
*include
vehicle_model.i
*include
impactor_position_2.i
*case_end_2
$
$ ....
*end
|
Hi Suri,
am I right?
-every KEYWORD defined outside the *CASE cards are global and are active during the total simulation time
and
-every KEYWORD inside is only gilty for the sequence between *CASE_N begin and *CASE_N end like *LOAD_, CONSTRAINT, *MAT_, …
Regards
Amir
Hi Amir,
Yes.
Regards,
Suri Bala
Hi Suri,
This is really helpful in Headrest performance test on Seat.
How can we define a multistage loading in the same direction incase of Implicit. Many times a single step loading creates convergence problem.
e.g.
Case -1 : Loading 0 - 100N
Case - 2 : Loading 100 - 200 N and so on,
by this we can slow down the rate of loading at particular level where there is a chance of convergence ( change the slope of loading curve )
Is this possible with *CASE ?
Thanks
Nihar
Hi Nihar,
To improve convergence, I would suggest breaking down the step size at the point of difficulty or to switch to Explicit for a short number of cycles. You can view the post on automatic time step control for implicit calculations for more information.
CASE may also be applied but may not be necessary since the load as you described can be achieved within a single definition of a load curve.
Hope this helps.
Suri
Hi,
I am trying to use case command with different termination times and different control conditions for different cases for a single model. I am not able to solve using *CASE keyword. I am getting an error as ” can find neither internal nor external lscasedriver program”. Can some one help in this regard.
Regards,
-Tirumala.
Tiru,
Hopefully you are using 971 as some 970 executables may not have the necessary driver. If you are using 971, I would contact your local distributer to get the appropriate version which has the necessary driver.
The case driver is the heart of this feature which is either embedded inside the code or works as an external program which should be available under /usr/bin/ or /usr/lstc directory.
Suri
Hi Suri,
I am also getting a message that either Internal or external lscasedriver program.
I am running Dyna 971 7600.398 on PC, I checked and could find lscasedriver.exe file along with Dyna executable.
How can I run, Do I have to set some Env. variable ?
Thanks.
Nihar
Hi Nihar,
If you already have the executable, perhaps you can place it under /usr/bin/ and also at /usr/lstc directory. I am not sure of any environment variable that can be set to indicate LS-DYNA where to look for the driver executable.
Suri
dear suri,
i have never tried this feature
but the first doubt coming to my mind is how dyna will be writing out the ascii and binary databases for the two cases in a Sequential and Independent Simulations ? sequentially ? like for the first case d3plot t0 d3plot12 and for the second case d3plot13 to d3plot 25. how about ascii files?
hope my question makes sense
thnks
ranjith
Ranjith,
It would be based on the ID specified in the *CASE keyword. Ex. 1.d3plot, 2.d3plot, 1.glstat, 2.glstat, where 1 and 2 are the case ids.
Suri
Hi Tiru,
To get rid of � can find neither internal nor external lscasedriver program�. Error Do the following, ( On Windows PC )
1) Create a directory with same name of your Dyna executable, i.e. ls971_7600_d_xxx in the same Directory of Dyna executables files are there.
2) Copy lscasedriver.exe in the newly created directory
3) Run your simulation through DOS Windows.
I was also facing the same problem, and with the above mentioned steps I could solve a problem using *CASE.
Regards,
Nihar