A program to recognize and reward our most engaged community members
Hi guys,
Is it possible to get the RUN ID of the current acusolve simulation via UDF? Like:-
acuRun: Log is redirected to: test.164.Log
I want to extract number 164 from the UDF. Is this possible?
Thanks!
Hi acupro, Actually, I am running a series of acusolve simulations using shell script. I have a series of simulations which are automatically executed using for loop. I want to automatically delete the simulations result using: acuCleanDir -pb channel -run 216 -delrun I will only keep the necessary results. However, in the shell script I do not have access to run id automatically. I want the UDF to print run id somewhere else and later read the id by shell script to delete the associated files. I have a limited disk space and want to delete all files as soon as the simulation is over. I do not want to manually delete but i want it to be done automatically. Do you have any other idea to delete the files? Thanks!
Hi acupro,
Actually, I am running a series of acusolve simulations using shell script. I have a series of simulations which are automatically executed using for loop. I want to automatically delete the simulations result using:
acuCleanDir -pb channel -run 216 -delrun
I will only keep the necessary results. However, in the shell script I do not have access to run id automatically. I want the UDF to print run id somewhere else and later read the id by shell script to delete the associated files. I have a limited disk space and want to delete all files as soon as the simulation is over. I do not want to manually delete but i want it to be done automatically.
Do you have any other idea to delete the files?
If you issue
acuCleanDir -h
you'll see that by default the last (most recent, highest run ID) run is selected.
If you're always operating on the most recent run, simply do not include the -run flag.
I don't see any current method to retrieve the Run ID via UDF. I can certainly make that request.
Just curious - what would you like to do with the Run ID?
How is the run id information expected to be used? Print to Log file or other?
Is this for running UDFs in a DOE scenario? Or just multiple runs made from the same folder?
How is the run id information expected to be used? Print to Log file or other? Is this for running UDFs in a DOE scenario? Or just multiple runs made from the same folder?
If you issue acuCleanDir -h you'll see that by default the last (most recent, highest run ID) run is selected. If you're always operating on the most recent run, simply do not include the -run flag.
Thanks, it works for the latest run.