![]() |
OpenFAST
Wind turbine multiphysics simulator
|
This module is a placeholder for any user defined wind types. More...
Functions/Subroutines | |
subroutine, public | ifw_4dext_init (InitInp, p, m, Interval, InitOut, ErrStat, ErrMsg) |
A subroutine to initialize the UserWind module. More... | |
subroutine, public | ifw_4dext_calcoutput (Time, PositionXYZ, p, Velocity, m, ErrStat, ErrMsg) |
This routine and its subroutines calculate the wind velocity at a set of points given in PositionXYZ. More... | |
real(siki) function, dimension(3) | interp4d (Time, Position, p, m, ErrStat, ErrMsg) |
This routine interpolates a 4-d dataset. More... | |
subroutine, public | ifw_4dext_end (ParamData, MiscVars, ErrStat, ErrMsg) |
This routine deallocates any memory in the FDext module. More... | |
Variables | |
type(progdesc), parameter | ifw_4dext_ver = ProgDesc( 'IfW_4Dext', '', '' ) |
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_4dext::ifw_4dext_calcoutput | ( | real(dbki), intent(in) | Time, |
real(reki), dimension(:,:), intent(in) | PositionXYZ, | ||
type(ifw_4dext_parametertype), intent(in) | p, | ||
real(reki), dimension(:,:), intent(inout) | Velocity, | ||
type(ifw_4dext_miscvartype), intent(in) | m, | ||
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] | p | Parameters |
[in,out] | velocity | Velocity output at Time (Set to INOUT so that array does not get deallocated) |
[in] | m | Misc variables for optimization (not copied in glue code) |
[out] | errstat | error status |
[out] | errmsg | The error message |
subroutine, public ifw_4dext::ifw_4dext_end | ( | type(ifw_4dext_parametertype), intent(inout) | ParamData, |
type(ifw_4dext_miscvartype), intent(inout) | MiscVars, | ||
integer(intki), intent(out) | ErrStat, | ||
character(*), intent(out) | ErrMsg | ||
) |
This routine deallocates any memory in the FDext module.
[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_4dext::ifw_4dext_init | ( | type(ifw_4dext_initinputtype), intent(in) | InitInp, |
type(ifw_4dext_parametertype), intent(out) | p, | ||
type(ifw_4dext_miscvartype), intent(out) | m, | ||
real(dbki), intent(in) | Interval, | ||
type(ifw_4dext_initoutputtype), intent(out) | InitOut, | ||
integer(intki), intent(out) | ErrStat, | ||
character(*), intent(out) | ErrMsg | ||
) |
A subroutine to initialize the UserWind module.
This routine will initialize the module.
[in] | initinp | Input data for initialization |
[out] | p | Parameters |
[out] | m | Misc variables for optimization (not copied in glue code) |
[out] | initout | 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. |
|
private |
This routine interpolates a 4-d dataset.
This method is described here: http://rjwagner49.com/Mathematics/Interpolation.pdf
[in] | time | time from the start of the simulation |
[in] | position | Array of XYZ coordinates, 3 |
[in] | p | Parameters |
[in] | m | Misc variables for optimization (not copied in glue code) |
[out] | errstat | Error status |
[out] | errmsg | Error message if ErrStat /= ErrID_None |