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

Can Field Data be irregularly spaced? #37

Open danrhouck opened 4 years ago

danrhouck commented 4 years ago

What would it take to have an irregular grid for the FieldData output? Given the "atmospheric conditions" of the simulations, the gradient from wake to ambient can be very sharp, especially in the near wake. It would be useful to have higher resolution within the wake and lower resolution outside so as not to increase the computational time too much.

whophil commented 4 years ago

Seems like the most general solution for this would be to have CACTUS load the "field data" grid from an external file, and then compute the velocities at these points when requested. This grid could be defined as Plot3D ascii (as there is already a reader for this).

This would require a bit of work in fielddata.f95 (where the grid is currently initialized) and WriteFieldData.f95 (where the velocities are computed and exported). It should be pretty straightforward.