sandialabs / CACTUS

CACTUS (Code for Axial and Cross-flow TUrbine Simulation) is a turbine performance simulation code, based on a free wake vortex method, to study wind turbines and marine hydrokinetic (MHK) devices.
BSD 3-Clause "New" or "Revised" License
18 stars 12 forks source link

Is my rotor going forwards AND backwards? #49

Closed danrhouck closed 3 years ago

danrhouck commented 3 years ago

This has never happened before. How is this possible? It looks like, approximately, every rev starting around rev 15 has one timestep that reads as rev 33. Around rev 32 or 33, it gets more mixed up with an additional rev reading out for some timesteps. It's set to start saving data at rev 35. It's saving over old data from a run that failed, but that's never been an issue before. image

whophil commented 3 years ago

~Do you have two or more runs saving to the same file simulataneously? It is hard to see how you would get those timestep numbers otherwise.~

EDIT: Actually that makes no sense. Is the screenshot you posted of the output of the executable stdout, or the actual file contents?

danrhouck commented 3 years ago

It's the output of the executable. I looked in the output folder for field data and they're out of order too. Specifically, the file numbers are in order, but the dates/times on which they're saved go back in forth in time. More specifically, even though I'm saving over some old data from a previous run that failed, the files that are out of order are all the new ones from the current run.

danrhouck commented 3 years ago

Figured it out. This is the danger of "disowning" a process to make it resistant to some failures. I do in fact have more than one simulation outputting data to the same folder. I just completely forgot that I did that. User error all the way.