Dear all,
I'd like to set a fixed temperature condition at the inlet and outlet. I found "run XX every XX " " " should be used to keep the temperature constant during the simulation. However, the CFDEM coupling liggghtsCommands can not recognize the quotation mark.
#run to see heat transfer
run 100000 every 1 "set region top_outlet property/atom Temp 200." "set region bottom_inlet property/atom Temp 300."
I added 'else if (add=="quotation") add = "\"";' in the source code LiggghtsCommandModel.C and readLiggghtsData.C. see the attached liggghtscommandmodel-code.png
And my liggghtsCommands file is shown in attached figure liggghtscommand.png
After compilation, I ran my project but got the error "fileName::stripInvalid() called for invalid fileName fileName::stripInvalid() called for invalid fileName" referring to the attached figure.
I feel that the file liggghtscommand is parsed by openfoam rather than liggghts so that quotation cannot be involved in the file.
I was stucked here for more than one week, could anyone give me advice?
Regards,
Brian
Attachment | Size |
---|---|
![]() | 29.09 KB |
![]() | 21.43 KB |
![]() | 16.84 KB |
mschramm | Sun, 12/27/2020 - 02:48
Similar Issue
Hello,
I ran into a similar issue when I wanted to add a if statement to the liggghtscommand code. See:
https://www.cfdem.com/forums/set-commands-using-liggghtscommandmodel-mul...
Brian | Mon, 12/28/2020 - 22:42
What is the error message you
What is the error message you got?
Daniel Queteschiner | Wed, 01/13/2021 - 16:00
Different solution
In our version of LIGGGHTS we have added a fix execute command (cf. https://github.com/ParticulateFlow/LIGGGHTS-PFM/blob/master/doc/fix_exec... )
which can be used to execute a text string as LIGGGHTS command every N steps during a simulation run.