![]() |
OpenFAST
Wind turbine multiphysics simulator
|
This module is a placeholder for any user defined wind types. More...
Functions/Subroutines | |
subroutine, public | ifw_userwind_init (InitData, ParamData, MiscVars, Interval, InitOutData, ErrStat, ErrMsg) |
A subroutine to initialize the UserWind module. More... | |
subroutine, public | ifw_userwind_calcoutput (Time, PositionXYZ, ParamData, Velocity, DiskVel, MiscVars, ErrStat, ErrMsg) |
This routine and its subroutines calculate the wind velocity at a set of points given in PositionXYZ. More... | |
subroutine, public | ifw_userwind_end (ParamData, MiscVars, ErrStat, ErrMsg) |
This routine closes any open files and clears all data stored in UserWind derived Types. More... | |
Variables | |
type(progdesc), parameter | ifw_userwind_ver = ProgDesc( 'IfW_UserWind', '', '' ) |
This module is a placeholder for any user defined wind types.
The end user can use this as a template for their code.
subroutine, public ifw_userwind::ifw_userwind_calcoutput | ( | real(dbki), intent(in) | Time, |
real(reki), dimension(:,:), intent(in) | PositionXYZ, | ||
type(ifw_userwind_parametertype), intent(in) | ParamData, | ||
real(reki), dimension(:,:), intent(inout) | Velocity, | ||
real(reki), dimension(3), intent(out) | DiskVel, | ||
type(ifw_userwind_miscvartype), intent(inout) | MiscVars, | ||
integer(intki), intent(out) | ErrStat, | ||
character(*), intent(out) | ErrMsg | ||
) |
This routine and its subroutines calculate the wind velocity at a set of points given in PositionXYZ.
The UVW velocities are returned in OutDataVelocity
[in] | time | time from the start of the simulation |
[in] | positionxyz | Array of XYZ coordinates, 3xN |
[in] | paramdata | Parameters |
[in,out] | velocity | Velocity output at Time (Set to INOUT so that array does not get deallocated) |
[out] | diskvel | HACK for AD14: disk velocity output at Time |
[in,out] | miscvars | Misc variables for optimization (not copied in glue code) |
[out] | errstat | error status |
[out] | errmsg | The error message |
subroutine, public ifw_userwind::ifw_userwind_end | ( | type(ifw_userwind_parametertype), intent(inout) | ParamData, |
type(ifw_userwind_miscvartype), intent(inout) | MiscVars, | ||
integer(intki), intent(out) | ErrStat, | ||
character(*), intent(out) | ErrMsg | ||
) |
This routine closes any open files and clears all data stored in UserWind derived Types.
[in,out] | paramdata | Parameters |
[in,out] | miscvars | Misc variables for optimization (not copied in glue code) |
[out] | errstat | determines if an error has been encountered |
[out] | errmsg | Message about errors |
subroutine, public ifw_userwind::ifw_userwind_init | ( | type(ifw_userwind_initinputtype), intent(in) | InitData, |
type(ifw_userwind_parametertype), intent(out) | ParamData, | ||
type(ifw_userwind_miscvartype), intent(out) | MiscVars, | ||
real(dbki), intent(in) | Interval, | ||
type(ifw_userwind_initoutputtype), intent(out) | InitOutData, | ||
integer(intki), intent(out) | ErrStat, | ||
character(*), intent(out) | ErrMsg | ||
) |
A subroutine to initialize the UserWind module.
This routine will initialize the module.
[in] | initdata | Input data for initialization. |
[out] | paramdata | Parameters. |
[out] | miscvars | Misc variables for optimization (not copied in glue code) |
[out] | initoutdata | Initial output. |
[in] | interval | Do not change this!! |
[out] | errstat | determines if an error has been encountered |
[out] | errmsg | A message about the error. See NWTC_Library info for ErrID_* levels. |