I want to servo the wall with a target confining pressure in LIGGGHTS. But, there are only "target force" that can be choosn in LIGGGHTS. So, we need to obtain the area of the wall and update the area timely. It confuses me a lot.
In addition, can we define functions, use "if" statement and "for" statement like python and other high level programming languages?
I look forward to your answers very much, if you have the relevant code, I would not be very grateful.
Thank you!
Wang Xiukai
mschramm | Thu, 05/06/2021 - 19:20
if statments and for loops
LIGGGHTS has if statements and for loops can be done via labels and jumping
Below is an example of using both in one of my flexible fiber examples (https://github.com/schrummy14/LIGGGHTS_Flexible_Fibers/blob/master/examp...)
# Run until we get the kinetic energy below our set tolerance
run ${set_step} # Run once to set/update all geometries and fixes
label begin_set_loop # Start of the loop
variable old_height equal ${max_h}
run ${set_step} pre no post no # Run so many steps until we check the KE again
variable res equal abs(${old_height}-${max_h})
if "${my_ke}<${ke_tol} && ${res}<${res_tol}" then &
"jump in.read_restart end_set_loop" &
else &
"jump in.read_restart begin_set_loop"
label end_set_loop # End of the loop
wangxiukai | Fri, 05/07/2021 - 14:26
Thank you very much!
Thank you very much!
Do you work on trixial compression test?
Thank you again.
Wish you have a nice day.
wangxiukai | Fri, 05/07/2021 - 14:42
Dear mschramm,
Dear mschramm,
I want to consult another question.
I am a new user of liggghts. I want to use the liggghts to study trixial compression tests, and then coupled with openfoam.
I learn it by reading the document. But there is too much content.
Do I need to read the document from section 1 to section 11?
How can I get started quickly?
Thank you.
mschramm | Sat, 05/08/2021 - 00:51
Document
Hello,
which document are you referring to?
To get started, I would run the example scripts and begin understanding what each command is doing.
wangxiukai | Sat, 05/08/2021 - 14:59
Hello,
Hello,
Thanks for your reply again.
The document refers to the online manual. https://www.cfdem.com/media/DEM/docu/Manual.html
I have run some examples, but I cannot find the example I wanted, such as, a trixial compression test.
Thank you again.
Delinz | Mon, 05/15/2023 - 08:59
TRIXIAL COMPRESSION TESTS
Hi Wang Xiukai,
Have you solved your problem "trixial compression tests with liggghts"? Im working on it recently. Could you plz share your case with me?
Thank you!
email:Delinz1@163.com
Delinz
ANITA A | Thu, 05/12/2022 - 08:12
Script request
If you have the script for triaxial compression test, can you please share ??
email: 102204001@smail.iitpkd.ac.in