|
[Sponsors] |
June 28, 2014, 11:17 |
Does CX_Interpret_String work in parallel?
|
#1 |
New Member
Manuel
Join Date: Jan 2014
Posts: 18
Rep Power: 12 |
Hello guys
I am having trouble with that function. I have an EXECUTE_ON_DEMAND which evaluates some conditions of my problem, and based on the result, it will keep'on iterating. I need to iterate over time-steps untill a certain condition gets reached Therefore I had something like: Code:
while(my_condition_not_satisfied) /*more iterations needed*/ { CX_Interpret_String("/solve/dti 100 20"); evaluate_again_condition; } Then I even thought of using the scheme command "ti-menu-load-string" to load any string you want, putting it inside the CX_Interpret_String and. Sounds ridiculous, (a string interpreter inside a string interpreter), but worth trying... That didn't work either. Fluent will crash, entering in no-response mode, without even printing in the console why. ANYWAY, I tried to continue with (physical-time-steps) and make it to work in parallel... big mistake. It didn't work. CX_Interpret_String gives me error: Code:
Error: eval: unbound variable Error Object: physical-time-steps I think my problem is solvable by scheme commands (a scheme DO loop and rp-variable passing to UDFs to evaluate the condition), but I'd really like to try by UDF first, scheme is tedious, user-unfriendly and hard-to-write. Has anyone used CX_Interpret_String in parallel Fluent? Is there any documentation about it? I found nothing in Ansys UDF Manual. I have also found around that exists CX_Interpret_String_to_String and CX_Message functions, but I don't know what they are for and where is documentation about them. Thanks in advance |
|
June 29, 2014, 21:22 |
|
#2 |
Senior Member
Join Date: Feb 2010
Posts: 164
Rep Power: 17 |
I also encountered such thing. I prefer to writing scheme command and use "Execute command" menu to perform it in parallel mode.
|
|
June 30, 2014, 04:36 |
|
#3 |
New Member
Manuel
Join Date: Jan 2014
Posts: 18
Rep Power: 12 |
Do you mean in Calculation Activities panel?
|
|
Tags |
parallel, scheme, udf |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
error while running in parallel using openmpi on local mc 6 processors | suryawanshi_nitin | OpenFOAM | 10 | February 22, 2017 21:33 |
Parallel processing problem | newbie29 | OpenFOAM Running, Solving & CFD | 1 | June 22, 2012 04:23 |
CFX parallel multi-node jobs fail w/ SLURM on Ubuntu 10.04 | danieru | CFX | 0 | February 17, 2012 06:20 |
HP MPI warning...Distributed parallel processing | Peter | CFX | 10 | May 14, 2011 06:17 |
Cases with small length scale work fine on a single processor but fail in parallel | adona058 | OpenFOAM Bugs | 5 | April 17, 2009 04:41 |