CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   CFX (https://www.cfd-online.com/Forums/cfx/)
-   -   Name of the CFX temporary working directory (https://www.cfd-online.com/Forums/cfx/118716-name-cfx-temporary-working-directory.html)

Axlex June 3, 2013 05:22

Name of the CFX temporary working directory
 
Hello,

i'm doing a simulation with Re-Mesh. While the Re-Mesh process i want to export the current Monitor data with cfx5mondata.exe. Therefor i have to specify the temporary CFX working path, but it alway changes.
<specified temporary CFX directory>/<simulation name>_<CHANGING NUMBER>_Working/dp0/CFX-7/CFX/Work1
Is there any rule for the changing number? It seems like it changes every day.

Regards
Robert

mjgraf June 3, 2013 09:12

That directory structure on the windows platform?

The Changing Number you mention should coincide with the number assigned to the current running def file in that folder.

If the windows platform is behaving like the linux platform (stopped using Windows about 8 years ago), that number starts at 001 and if an .out file (or others, .dir, .res, .trn) already exists in the folder using the same def file name (or specified during the cfx5solve execution with -name or -fullname), the number is incremented sequentially.

Easiest is to create a wrapper for the cxfx5mondata that parses the folder for the .dir folderd that exist and determines the latest by time. If you have more than one active run per folder, have fun doing it pragmatically unless you want them all. If other .dir folders exist and there is only a single, active calculation, the additional .dir folders are from abnormally terminated jobs.



Quote:

Originally Posted by Axlex (Post 431594)
Hello,

i'm doing a simulation with Re-Mesh. While the Re-Mesh process i want to export the current Monitor data with cfx5mondata.exe. Therefor i have to specify the temporary CFX working path, but it alway changes.
<specified temporary CFX directory>/<simulation name>_<CHANGING NUMBER>_Working/dp0/CFX-7/CFX/Work1
Is there any rule for the changing number? It seems like it changes every day.

Regards
Robert


Axlex June 4, 2013 03:54

Thank you for your reply.

I tried your method and it worked. But later i noticed, that the remeshing process takes place in this working directory. That's why the pwd command in the replay file is sufficient to get the path.

Without your help, i couldnt have reached this solution. Thank you.

Regards
Robert


All times are GMT -4. The time now is 22:40.