Skip to main content
Solved

Storage of temporary files


Johnny O

Hello,

Zemax Optic Studio creates on my system disc (C:) temporary files big as 70 GB. My system disc has only 72GB of  free space. How to make Optic Studio create those temporary files on another disc?

Best answer by Mark.Nicholson

I think the folder that OS uses for temporary files is the %TEMP% system variable, so you could change it there. You should probably see where Python is storing its temporary files too.

 

  • Mark
View original
Did this topic help you find an answer to your question?

3 replies

Johnny O
  • Author
  • Monochrome
  • 1 reply
  • January 19, 2024

I’m running ZOS-API with Python, using multiprocessing and each process seems to try use for temporary file as much as tens of GB.


Mark.Nicholson
Luminary
Forum|alt.badge.img+3

I think the folder that OS uses for temporary files is the %TEMP% system variable, so you could change it there. You should probably see where Python is storing its temporary files too.

 

  • Mark

MichaelH
Ansys Staff
Forum|alt.badge.img+2
  • Ansys Staff
  • 342 replies
  • January 19, 2024

Hi Johnny,

I’m not sure if you’re saving ZRD files but these tend to be the biggest files OpticStudio produces (ZBF files can also be large, but typically not 10’s of Gb).

In non-sequential mode, when saving a ZRD file, OpticStudio first writes this to the %TEMP% folder as Mark mentioned and then after the ray trace is finished, then the ZRD is copied to the final location.  The few options I can think of is:

  1. Change the %TEMP% folder location (Control Panel > System > Advanced > Environment Variables).  This will affect all programs on your computer so you should be careful with this option.
  2. Modify your multiprocessing scripts to either wait for your previous simulation to finish or to monitor the free space on the C: drive and only spin up a new process if there is enough free space
  3. If you are saving ZRD files, make sure you have Compressed Basic Data (CBD).  This uses floats (8 digits) rather about doubles (16 digits) and only saves a subset of data (see Help Files), but it saves enough data to fully reproduce any Detector Rectangle image including incoherent, coherent, radiance & you can use filter strings like normal.

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings