if statement in execute commands
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? |
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)()) |
Quote:
regards. |
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"))()) |
All times are GMT -4. The time now is 10:25. |