Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes to help compile #19

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 2 additions & 19 deletions glue-codes/openfast-cpp/src/OpenFAST.H
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ struct turbineDataType {
int numForcePtsTwr;
//! Total number of actuator points
int numForcePts;
//! Node clustering type
int nodeClusterType;
//! Inflow Type - 1 (InflowWind) or 2 (Externally specified)
int inflowType;
//! Drag coefficient of nacelle
Expand Down Expand Up @@ -324,15 +326,10 @@ class OpenFAST {
//! Array containing forces and deflections data for blade-resolved FSI simulations.
std::vector<std::vector<turbBRfsiDataType>> brFSIData;

<<<<<<< HEAD
//! Data structure to get forces and deflections from ExternalInflow module in OpenFAST
std::vector<ExtInfw_InputType_t> extinfw_i_f_FAST; // Input from OpenFAST
//! Data structure to send velocity information to ExternalInflow module in OpenFAST
std::vector<ExtInfw_OutputType_t> extinfw_o_t_FAST; // Output to OpenFAST
=======
std::vector<ExtInfw_InputType_t> cDriver_Input_from_FAST;
std::vector<ExtInfw_OutputType_t> cDriver_Output_to_FAST;
>>>>>>> OpenFAST/dev

//! Data structure to get deflections from ExternalLoads module in OpenFAST
std::vector<ExtLdDX_InputType_t> extld_i_f_FAST; // Input from OpenFAST
Expand Down Expand Up @@ -441,16 +438,7 @@ class OpenFAST {
float & fy,
float & fz);

<<<<<<< HEAD
//! Allocate turbine number 'iTurbGlob' to the processor with global MPI rank 'procNo'. MUST be called from every MPI rank.
=======
hid_t openVelocityDataFile(bool createFile);
void readVelocityData(int nTimesteps);
void writeVelocityData(hid_t h5file, int iTurb, int iTimestep, ExtInfw_InputType_t iData, ExtInfw_OutputType_t oData);
herr_t closeVelocityDataFile(int nt_global, hid_t velDataFile);
void backupVelocityDataFile(int curTimeStep, hid_t & velDataFile);

>>>>>>> OpenFAST/dev
void setTurbineProcNo(int iTurbGlob, int procNo) { turbineMapGlobToProc[iTurbGlob] = procNo; }
//! Allocate all turbines to processors in a round-robin fashion. MUST be called from every MPI rank.
void allocateTurbinesToProcsSimple();
Expand Down Expand Up @@ -769,7 +757,6 @@ private:

void loadSuperController(const fastInputs & fi);

<<<<<<< HEAD
//! Apply the velocity data at the Aerodyn nodes in 'velData' to turbine number 'iTurb' at time step 'iPrestart' through the data structure 'cDriver_Output_to_FAST'
void applyVelocityData(int iPrestart, int iTurb, ExtInfw_OutputType_t o_t_FAST, std::vector<double> & velData) ;

Expand All @@ -779,10 +766,6 @@ private:
void applyWMrotation(double * wm, double * r, double *rRot, double transpose = 1.0);
//! Apply a Direction Cosine Matrix rotation 'dcm' to a vector 'r' into 'rRot'. To optionally transpose the rotation, set 'tranpose=-1.0'.
void applyDCMrotation(double * dcm, double * r, double *rRot, double transpose = 1.0);
=======
void setOutputsToFAST(ExtInfw_InputType_t cDriver_Input_from_FAST, ExtInfw_OutputType_t cDriver_Output_to_FAST) ; // An example to set velocities at the Aerodyn nodes
void applyVelocityData(int iPrestart, int iTurb, ExtInfw_OutputType_t cDriver_Output_to_FAST, std::vector<double> & velData) ;
>>>>>>> OpenFAST/dev

};

Expand Down
Loading
Loading