Standalone AeroDyn Inputs/Outputs

Dear Jason,
Got it! That can be done. Do you know which lines I should modify to replace the AeroDyn motions with ones from OpenSees? I just wanted to check I am modifying the correct part.

Best,
Elaine

Dear @Elaine.Liu,

I’m not sure what you mean by “lines” considering that you are changing OpenSees, not the AeroDyn driver or the AeroDyn module. I imagine you can transfer lines of code from the AeroDyn driver into OpenSees.

Best regards,

Hm, maybe I misunderstood. My impression was that OpenSees would send AeroDyn the information of the motions at the aerodynamic analysis nodes. My blades can be modeled as rigid in OpenSees. Instead of the usual calling the AeroDyn driver for this, I would call my functions that communicate with OpenSees to obtain input, is that right?

Elaine

Dear @Elaine.Liu,

Correct. You shouldn’t need to change the AeroDyn module. And you shouldn’t need to use the AeroDyn driver, but you could take sections of code from the AeroDyn driver and transfer them to your code. I imagine that you are either changing OpenSees directly to call the AeroDyn module or adding an interface layer between OpenSees and the AeroDyn module.

Best regards,

Sounds good. I am adding an interface layer between OpenSees and AeroDyn. Do you mind pointing me out to the sections of code I need to replace with my interface layer where AeroDyn normally calls the driver script?

Elaine

The AeroDyn driver calls the AeroDyn module, not the other way around. Your interface layer between OpenSees and AeroDyn will replace the AeroDyn driver or the OpenFAST glue code, which are used to call the AeroDyn module.

Best regards,

I see. I am using the standalone AeroDyn module, may I ask where the driver calls the module? Thanks!

Dear @Elaine.Liu,

The AeroDyn module is called through its core SUBROUTINEs: AD_Init (to initialize AeroDyn), AD_UpdateStates (to advance AeroDyn’s states by one step), AD_CalcOutput (to return aerodynamic loads as outputs), and AD_End (to terminate AeroDyn). The motion inputs are passed to AD_UpdateStates and AD_CalcOutput. I would review the AeroDyn driver source code to find these calls.

Best regards,

Thank you, Jason, for these helpful information. Upon looking at my OpenSees model, it is a bit difficult to model the blades as I only have the tower modeled. Is there any way that AeroDyn can compute the blades motion using rigid-body-transformation after I specify hub motion? Usually when hub motion is specified through the driver file, how are the blade motions being computed? Thank you for your guidance.

Elaine

Dear @Elaine.Liu,

As I mentioned before, the standalone AeroDyn driver derives the blade motion by mesh-mapping from the blade-root motion (the mesh-mapping uses rigid-body kinematics), which itself is mesh-mapped from the hub motion. As I see it, you’ll have to mimic this logic from the AeroDyn driver within OpenSees, given that you are not modeling the blades in OpenSees.

Best regards,

Thank you Jason. Since the AeroDyn driver has this code, could I not just use AeroDyn to model the blades and for it to calculate motions while I provide hub motion? I’m still a bit confused on how it can calculate blade motion but I must use OpenSees for that. Thanks!

Best,
Elaine

Dear @Elaine.Liu,

As I’ve said before, what I’m proposing you do is extract sections of code from the AeroDyn driver (such as how the driver calculates blade motion from hub motion) and move this code into OpenSees or the wrapper you are developing between OpenSees and AeroDyn.

Best regards,

Hi Jason,
Understood! I am just curious why the blade motion calculations cannot use just the AeroDyn functions directly. Would these code sections in AeroDyn be in the AD_UpdateStates part? Thanks very much for your continued support.

Best,
Elaine

Hi @Elaine.Liu,

Again, the AeroDyn module does not compute motions internally, but receives them as input from the driver code.

Best regards,

1 Like

Hi Jason,

Hope you are doing well! Previously, we had discussed using OpenSees to call AeroDyn, but I am actually curious if we can change the source code of the driver. Inside the driver AeroDyn_Driver_Subs.f90, I have integrated query functions that are capable of receiving data from OpenSees. This way, I should be able to replace where the driver assigns hub motions as my query functions for hub motions from OpenSees. I’m not sure if this would make sense in this particular location yet (Line 900), but let me know your thoughts!

Best,

Dear @Elaine.Liu,

I’m not familiar enough with OpenSees to know if it is set up such that it can be driven by an external program. In addition to querying hub motions, it will also be important to advance OpenSees in time. Does OpenSees have the equivalent of functions in OpenFAST such as _UpdateStates() and _CalcOutput() that are used to advance the states one time step and calculate outputs (perhaps combined into a single routine)? If so, I could see that you could modify the AeroDyn driver to advance OpenSees in time, but if not, my guess is OpenSees would have to be the driver. Most software want to be their own driver; the modularization framework of OpenFAST is special in that it allows a calling program to drive the simulation.

Best regards,

Hi Jason,
Thank you for the prompt reply as always. Yes, OpenSees has equivalent functions in advancing its own states and time. In my proposed framework, AeroDyn would be driven by the driver, while OpenSees would be driven by its own OpenSees_driver, and the two would exchange information at every timestep (facilitated by a real-time target machine). OpenSees would send hub motions to AeroDyn driver, which then calls AeroDyn to compute hub loads. These forces at the hub are sent back to OpenSees to advance its states and compute hub loads for the next state.

Let me know if you think that sounds feasible! I am thinking of modifying the driver to directly query hub information from OpenSees. But I am still a bit unsure where I should be doing that for the best implementation. Thank you!

Best,
Elaine

Dear @Elaine.Liu,

If I understand correctly, you are proposing having each software (OpenSees, AeroDyn) running in parallel, with specific times where data is exchanged and synchronized. I’ve not done this myself and this is not how AeroDyn is set-up currently, but I’m guessing it could be possible with development work.

Best regards,

Hi Jason,
Yes, they will be running in parallel and communicate with specific times that are synchronized to complete the whole simulation. This can be maintained with a real-time target machine. If I were to prescribe hub motions from my OpenSees model, would I have to replace around line 900 (rotor azimuth, speed and acceleration) in the driver source code with my query functions? Is there a way to directly prescribe the translational hub motions x,y,z without overwriting the way internal motions are computed in the driver? Thanks!

Best,
Elaine

Dear @Elaine.Liu,

Yes, I agree with your approach. You’ll need to replace the logic for computing hub motion based on inputs from the AeroDyn driver input file by querying data from OpenSees.

Best regards,