|
[Sponsors] | |||||
|
|
|
#1 |
|
New Member
mohamad ali mirzaei
Join Date: Feb 2017
Posts: 27
Rep Power: 10 ![]() |
I want to check a variable each time step and do some changes to the case file if the value is higher than a specific number. to do so, I am using execute command each time step using following command:
(if (<= 3500.0 (string->number (pick-robust "/report/volume-integrals/maximum 20 231 () phase-1 viscosity-ratio no"))) (/solve/set/transient-controls/time-step-size 0.01)) but I receive the following error as I run the simulation and when the command is executed: Error: eval: unbound variable Error Object: /solve/set/transient-controls/time-step-size Do you know what is the problem and how I can resolve the problem? |
|
|
|
|
|
|
|
|
#2 |
|
Senior Member
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 35 ![]() ![]() |
where did you get it?
Code:
pick-robust Code:
(if (<= 3500.0 (string->number (pick-a-real "/report/volume-integrals/maximum 20 231 () phase-1 viscosity-ratio no"))) (/solve/set/transient-controls/time-step-size 0.01)())
__________________
best regards ****************************** press LIKE if this message was helpful |
|
|
|
|
|
|
|
|
#3 | |
|
New Member
mohamad ali mirzaei
Join Date: Feb 2017
Posts: 27
Rep Power: 10 ![]() |
Quote:
regards. |
||
|
|
|
||
|
|
|
#4 |
|
Senior Member
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 35 ![]() ![]() |
Code:
(if (<= 3500.0 (string->number (pick-a-real "/report/volume-integrals/maximum 20 231 () phase-1 viscosity-ratio no"))) (ti-menu-load-string (format #f "solve set t-s 0.01"))())
__________________
best regards ****************************** press LIKE if this message was helpful |
|
|
|
|
|
![]() |
| Tags |
| execute commands, if statement, tui |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| calculation activities, execute commands | Starcatcher | Main CFD Forum | 0 | December 22, 2017 20:40 |
| Fluent Execute Commands: Syntax for return | pisykl | FLUENT | 0 | June 16, 2016 21:45 |
| Save picture from Execute commands and journal files | FJSJ | FLUENT | 0 | January 29, 2015 09:56 |
| OpenFOAM14 for Mac OSX Darwin 104 | gschaider | OpenFOAM Installation | 118 | July 20, 2008 06:19 |
| Execute Commands from input file | Greg Z | FLUENT | 1 | May 24, 2006 17:56 |