Dear Jason,
I add a routine to ElastoDyn.f90 to perform the mass addition to blade elements as follows:
[code]!**********************************************************************************************************************************
!> This routine is used to add mass to blade elements at a given simulation time
SUBROUTINE AddMass(p, InputFileData, ErrStat, ErrMsg)
!..
! Passed variables
TYPE(ED_ParameterType), INTENT(INOUT) :: p !< Parameters of the structural dynamics module
TYPE(ED_InputFile), INTENT(IN) :: InputFileData !< all the data in the ElastoDyn input file
INTEGER(IntKi), INTENT(OUT) :: ErrStat !< Error status
CHARACTER(*), INTENT(OUT) :: ErrMsg !< Error message when ErrStat =/ ErrID_None
! Local variables.
INTEGER(IntKi) :: J ! Loops through nodes / elements.
INTEGER(IntKi) :: K ! Loops through blades.
! Initialize some output values
ErrStat = ErrID_None
ErrMsg = ""
!..
! Calculate the new blade element mass
!..
DO K = 1,p%NumBl ! Loop through the blades
DO J = 1,p%BldNodes ! Loop through the blade nodes / elements
! Calculate the mass of the current element
p%BElmntMass(J,K) = 1.5*p%MassB(K,J)*p%DRNodes(J) ! Mass of blade element J
ENDDO ! J - Blade nodes / elements
ENDDO ! K - Blades
END SUBROUTINE AddMass
!----------------------------------------------------------------------------------------------------------------------------------
[/code]
and I call this Subroutine in FAST_Prog.f90 as follows:
[code]! Time Stepping:
!..
DO n_t_global = Restart_step, Turbine(1)%p_FAST%n_TMax_m1
! call AddMass routine at given simulation time
IF (n_t_global == 5) THEN
CALL AddMass(p_ED, InputFileData, ErrStat, ErrMsg)
END IF
! bjj: we have to make sure the n_TMax_m1 and n_ChkptTime are the same for all turbines or have some different logic here[/code]
now I’m trying to compile FAST.sln with VS but I’v got this error:
Error error #11023: Not all components required for linking are present on command line ipo
Severity Code Description Project File Line Suppression State
Error error LNK2019: unresolved external symbol ADDMASS referenced in function MAIN__ ipo_144887obj3.obj
Severity Code Description Project File Line Suppression State
Error fatal error LNK1120: 1 unresolved externals …..\build\bin\openfast_x64.exe
do you have any idea how to solve this error?
Best regards
Sebastian