Name of the CFX temporary working directory
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.
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.
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.
|All times are GMT -4. The time now is 08:49.|