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

SoilDyn -- soil dynamics module #986

Draft
wants to merge 176 commits into
base: dev
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
176 commits
Select commit Hold shift + click to select a range
a18de70
DirtDyn: initial commit with rough skeleton code
andrew-platt Jan 29, 2020
311a253
DirtDyn: minor fixes for compiling with ifort
Jan 30, 2020
a4e774e
DirtDyn: add VS project
andrew-platt Jan 30, 2020
b3f8c07
DirtDyn: fix version info on solution file
andrew-platt Jan 30, 2020
3d2b9de
DirtDyn: DLL loading/unloading working
andrew-platt Jan 31, 2020
d7fa8f3
DirtDyn: input files in registry
andrew-platt Feb 4, 2020
62c9503
DirtDyn: successful initializing of DLL
andrew-platt Feb 4, 2020
b4cf83e
DirtDyn: update so static linking is possible
andrew-platt Feb 4, 2020
e74522c
DirtDyn: remove unused file
andrew-platt Feb 5, 2020
bbd565e
Merge branch 'f/DirtDyn' of https://github.nrel.gov/aplatt/openfast-p…
andrew-platt Feb 5, 2020
7000de6
DirtDyn: add preproc command for quicker development work.
andrew-platt Feb 5, 2020
037092e
SoilDyn: name change
andrew-platt Feb 5, 2020
e5b1ea6
SoilDyn: add skeleton IO module
andrew-platt Feb 5, 2020
81eca80
SoilDyn: allow multiple DLL calls
andrew-platt Feb 7, 2020
e922d28
SoilDyn: more input file reading
andrew-platt Feb 7, 2020
b38dd98
SoilDyn: add SoilDyn_IO.f90 to VS project
andrew-platt Feb 7, 2020
6f5f728
SoilDyn: convert to 6x6 matrix reads
andrew-platt Feb 7, 2020
4ebf105
SoilDyn: Input file parsing complete (I think)
andrew-platt Feb 7, 2020
4be8c0b
SoilDyn: add some echo file info on points used
andrew-platt Feb 7, 2020
af22092
SoilDyn: DLL input file handling
andrew-platt Feb 10, 2020
393f1d7
SoilDyn: error handling on the DLL and its input files
andrew-platt Feb 10, 2020
7d7f4c3
SoilDyn: error handling on the DLL and its input files
andrew-platt Feb 10, 2020
5bc3947
Merge branch 'f/SoilDyn' of https://github.nrel.gov/aplatt/openfast-p…
andrew-platt Feb 10, 2020
f41dcfe
SoilDyn: more input file location checking for DLL's
andrew-platt Feb 10, 2020
2bf2dcc
SoilDyn: error handling on DLL input files
andrew-platt Feb 10, 2020
c7160d8
Merge branch 'f/SoilDyn' of https://github.nrel.gov/aplatt/openfast-p…
andrew-platt Feb 10, 2020
bcd73ab
SoilDyn: add input file and parsing to driver
andrew-platt Feb 10, 2020
c597595
SlD: minor cleanup
andrew-platt Feb 18, 2020
0ea575a
SlD: add error trapping to REDWIN interface
andrew-platt Feb 18, 2020
0d9399c
SlD: move error checking routines to end of file
andrew-platt Feb 19, 2020
b2274bb
SlD: update vs build.
andrew-platt Feb 19, 2020
802e343
SlD: update registry bat file for VS builds
andrew-platt Feb 19, 2020
a494312
SlD: move checks on DLL input files
andrew-platt Feb 19, 2020
8b63225
SlD: remove SlD types from REDWINinterface.f90
andrew-platt Feb 19, 2020
eb24883
SlD: simplify driver
andrew-platt Feb 19, 2020
a624c2b
SlD: coordinate transforms between OpenFAST and REDWIN
andrew-platt Feb 19, 2020
b40c967
SlD: basic driver input file roughed in
andrew-platt Feb 25, 2020
f37ca39
SlD: notes on runmode for REDWIN DLL
andrew-platt Feb 25, 2020
1eb0c83
SlD: add parsing of time series input displacements
andrew-platt Feb 25, 2020
668b171
SoilDyn: change precision in the REDWIN interface for displacement
andrew-platt Mar 2, 2020
68db17f
SlD: Add meshes for input / output
andrew-platt Mar 2, 2020
84b3c0c
SlD: update driver to loop through displacements from input file
andrew-platt Mar 2, 2020
98363bd
SlD: update VS project
andrew-platt Mar 2, 2020
93bad67
Merge branch 'f/SoilDyn' of https://github.nrel.gov/aplatt/openfast-p…
andrew-platt Mar 2, 2020
8671cdd
SlD: add interpolation of input displacement file to driver
andrew-platt Mar 2, 2020
67c5787
Merge branch 'f/SoilDyn' of https://github.nrel.gov/aplatt/openfast-p…
andrew-platt Mar 2, 2020
7e52b0a
SlD: add error checking on Calc routine
andrew-platt Mar 2, 2020
06ca67a
SlD: change angles to degrees in REDWIN
andrew-platt Mar 3, 2020
bcd04ee
SlD: multiple instances use different DLL's
andrew-platt Mar 3, 2020
deaa679
SlD: fix units. Radians for anges to REDWIN dll
andrew-platt Mar 3, 2020
cf5b2f8
SlD: update for one DLL and paths
andrew-platt Mar 4, 2020
e4596c6
SlD: fix for Get_CWD for platform specific
andrew-platt Mar 5, 2020
a6accb3
SlD: minor updates to get it running on windows again
andrew-platt Mar 11, 2020
37837f0
SlD: change all force and stiffness in REDWIN module to R8Ki
andrew-platt Mar 11, 2020
7d63780
SlD: add output channels and output file to driver
andrew-platt Mar 13, 2020
5875122
SlD: add WriteOutput routine
andrew-platt Mar 13, 2020
7ddb24e
SlD: remove unneeded.
andrew-platt Mar 17, 2020
881bf54
SlD: update the output format from driver
andrew-platt Mar 19, 2020
ac32f35
Merge branch 'f/SoilDyn' of https://github.nrel.gov/aplatt/openfast-p…
andrew-platt Mar 19, 2020
de9b080
SlD: minor changes for integrating with FAST_Solver
andrew-platt Mar 19, 2020
f029b1c
Merge remote-tracking branch 'upstream/dev' into f/SoilDyn
andrew-platt Mar 19, 2020
53f2640
Merge remote-tracking branch 'ebranlard/f/flexsub2' into f/SoilDyn
andrew-platt Mar 19, 2020
2b74a2f
Merge branch 'f/flexsub2' into f/SoilDyn-SDmerge
andrew-platt Mar 19, 2020
447097d
SlD: hooks in glue code and input file changes.
andrew-platt Mar 24, 2020
4d0efd0
Merge remote-tracking branch 'upstream/dev' into f/SoilDyn-SDmerge
andrew-platt Mar 24, 2020
210f53f
Merge remote-tracking branch 'upstream/dev' into f/SoilDyn-SDmerge
andrew-platt Mar 25, 2020
c4b8a63
SlD: renaming of routines to match OpenFAST glue-code better
andrew-platt Mar 25, 2020
13dd7d5
SlD: minor updates to glue code.
andrew-platt Mar 25, 2020
35715f9
SlD: rename meshes for consistency, add to glue code
andrew-platt Mar 26, 2020
8493b54
SlD: update VS project
andrew-platt Mar 26, 2020
707b767
SlD: change routine for small angles
andrew-platt Mar 27, 2020
e6d6468
SlD: add some more of the SlD mesh transfers
andrew-platt Mar 27, 2020
8730da8
SlD: plumbing for outputs in glue code
andrew-platt Mar 30, 2020
251358e
SD: Comment out unused routine
andrew-platt Mar 30, 2020
a003e28
SlD: case select around DLL bits, fix errors in last commit
andrew-platt Mar 30, 2020
acd5515
Merge branch 'f/SoilDyn-SDmerge' of https://github.com/andrew-platt/O…
andrew-platt Mar 31, 2020
bf75103
SlD: update units, fix reaction signs
andrew-platt Apr 7, 2020
f23e811
Merge remote-tracking branch 'ebranlard/f/flexsub2' into f/SoilDyn-SD…
andrew-platt Apr 7, 2020
2e061a3
SlD: initial orientaion incorrect
andrew-platt Apr 7, 2020
f282137
Merge remote-tracking branch 'upstream/dev' into f/SoilDyn-SDmerge
andrew-platt Apr 9, 2020
33b9fc5
SlD: move soildyn call
andrew-platt Apr 9, 2020
890db2a
Merge branch 'f/SoilDyn-SDmerge' of github.com:andrew-platt/openfast …
andrew-platt Apr 9, 2020
c64bbc6
SlD: modify solver with soildyn
andrew-platt Apr 9, 2020
15d6348
SlD: update types file for ED (from merge)
andrew-platt Apr 9, 2020
012ca26
SlD: add stiffness matrix option
andrew-platt Apr 13, 2020
83139cd
SlD: add soilDyn to jacobian
andrew-platt Apr 14, 2020
70b60c7
SlD: modify glue code solver logic so don't need correction steps
andrew-platt Apr 14, 2020
87f6bb4
SlD: add optional flag on SlD_CalcOutput for perturb calcs
andrew-platt Apr 14, 2020
25d313a
SlD: updates to solver -- currently stable
andrew-platt Apr 14, 2020
fd4f45f
SlD: add ability to handle large angle calculations at start
andrew-platt Apr 14, 2020
36b28af
SlD: cleanup the option1 solve slightly (commented out test stuff rem…
andrew-platt Apr 14, 2020
a57755c
WIN_DLL_LOAD option (renamed from ORCA_DLL_LOAD)
andrew-platt Apr 14, 2020
8482212
SlD: fix coorinate transform issue in REDWINinterface
andrew-platt Apr 15, 2020
718e0e8
SlD: some updates in the call to redwin. Work in progress
andrew-platt Apr 15, 2020
07ec0a9
Merge branch 'f/SlD_Opt1_jac' of https://github.com/andrew-platt/Open…
andrew-platt Apr 15, 2020
1fcab72
SlD: allow for using only DLL stiffness matrices in the response calcs
andrew-platt Apr 16, 2020
9eff353
SlD: update on the stiff only DLL calcs
andrew-platt Apr 16, 2020
7ea2d52
SlD: fix typos in previous commit
andrew-platt Apr 16, 2020
7c72370
Merge remote-tracking branch 'origin/f/DocUpdate_Solver' into f/SlD_O…
andrew-platt Apr 17, 2020
bdc09a5
Docs: update OpenFAST solve documentation
andrew-platt Apr 17, 2020
26e5e90
SlD: update the OpenFAST Algorithms doc for SlD
andrew-platt Apr 17, 2020
0a44146
SlD: move SlD input setting to more logical location
andrew-platt Apr 17, 2020
8d0ece3
Fixed How SoilDyn is Called in the Glue Code
jjonkman Apr 18, 2020
4d64b4b
Merge pull request #2 from jjonkman/f/SlD_Opt1_jac
andrew-platt Apr 20, 2020
88989bf
SlD: minor typo in Alogorithms.tex
andrew-platt Apr 20, 2020
1a15eb6
SlD: remove SlD from Jacobian in FAST_Solver
andrew-platt Apr 20, 2020
a895b84
SlD: update glue code for Jacobian if no HD
andrew-platt Apr 22, 2020
c77c90a
SlD: remove extra mesh from the registry
andrew-platt Apr 22, 2020
a76c0e3
SlD: remove extra logic from the SlD_CalcOutput
andrew-platt Apr 22, 2020
4218d8c
SlD: update of algorithm to match documentation better
andrew-platt Apr 22, 2020
e28b644
SlD: missed a bit of logic in a76c0e30
andrew-platt Apr 22, 2020
f5bf3e7
SlD: allow heave/yaw in the reaction on Model 2
andrew-platt May 5, 2020
feeceab
TMD: add tower top time-series force input file
andrew-platt May 5, 2020
612bb7a
TMD: fix error in force
andrew-platt May 6, 2020
5167a7c
SlD: fix an issue with error handling
andrew-platt May 7, 2020
d13a6e4
SlD: bugfix -- DLL input file checking incorrect
May 20, 2020
cc7e34c
Merge remote-tracking branch 'ebranlard/f/flexsub2' into f/SlD_NoJaco…
andrew-platt May 21, 2020
ede2f2a
SlD: move DLL state info to xd, cleanup of REDWIN interface
andrew-platt May 20, 2020
0985888
SlD: attempt to fix fortlll crash at end without SlD.
andrew-platt May 27, 2020
c6b0bb7
Merge remote-tracking branch 'upstream/dev' into f/SoilDyn
andrew-platt Jun 3, 2020
f50d81b
Merge remote-tracking branch 'ebranlard/f/flexsub2' into f/SoilDyn
andrew-platt Jun 3, 2020
125540f
SlD: add check on WtrDpth (passed from HD)
andrew-platt Jun 3, 2020
491b3d3
Merge remote-tracking branch 'OpenFAST/dev' into f/SoilDyn
andrew-platt Jun 10, 2020
76864b3
Merge remote-tracking branch 'ebranlard/f/flexsub2' into f/SoilDyn
andrew-platt Jun 16, 2020
60558c1
Merge remote-tracking branch 'OpenFAST/dev' into f/SoilDyn_SubDynStiff
andrew-platt Jun 16, 2020
a6cd85b
SlD: rearrange so stiffness matrices can easily be passed out at init.
andrew-platt Jun 16, 2020
a12e053
SlD: remove SubRotateZ from soildyn
andrew-platt Jun 16, 2020
71a8082
SlD: remove StVarPrint from discretestates (it isn't used by REDWIN D…
andrew-platt Jun 16, 2020
45d0598
SoilDyn+SubDyn: Passing of stiffness and mesh nodes to SD
andrew-platt Jun 16, 2020
210b06f
SlD: add option for only returning non-linear portion of reaction forces
andrew-platt Jun 16, 2020
00d4424
SoilDyn: set SlD_Init flag for non-linear portion
andrew-platt Jun 16, 2020
63771d6
SlD: Output node forces include linear terms
andrew-platt Jun 16, 2020
9789ef7
FlexSub: adding Soil stiffness
ebranlard Jun 17, 2020
7a7b37e
FlexSub: activating NonLinear SoilDyn part
ebranlard Jun 18, 2020
1acb67e
FlexSub: Bug fix: count of internal DOF was wrong since introduction …
ebranlard Jun 18, 2020
282277d
FlexSub: removing some print statements
ebranlard Jun 18, 2020
df696ea
FlexSub: input/output meshes now same as subdyn mesh
ebranlard Jun 18, 2020
44ae34f
Merge remote-tracking branch 'ebra/f/flexsub2' into f/SoilDyn_SubDynS…
ebranlard Jun 18, 2020
36a266f
SubDyn: missing logic on deallocate
andrew-platt Jun 19, 2020
c39d11d
SlD: remove confusing comment in FAST_Solver
andrew-platt Jun 24, 2020
59c57d7
SlD driver: stiffness matrix is from init
andrew-platt Jun 24, 2020
5568539
SlD: remove unused variables and routines
andrew-platt Jun 24, 2020
f080fb5
SlD: add documentation for tower top force and SD matrix boundar cond…
andrew-platt Jun 26, 2020
ab5f071
SlD: remove stale TODO.txt
andrew-platt Jun 29, 2020
04f9883
Merge remote-tracking branch 'ebranlard/f/flexsub2' into f/SoilDyn
andrew-platt Jul 6, 2020
0527a6d
Merge remote-tracking branch 'OpenFAST/dev' into f/SoilDyn
andrew-platt Jul 7, 2020
d0abb07
Merge remote-tracking branch 'OpenFAST/dev' into f/SoilDyn
andrew-platt Jul 8, 2020
2011efd
Merge remote-tracking branch 'ebranlard/f/flexsub2' into f/SoilDyn
andrew-platt Jul 9, 2020
8cfb320
SlD: [BugFix] bug in the FindClosestNodes routine
andrew-platt Aug 18, 2020
53e8c06
Merge remote-tracking branch 'OpenFAST/dev' into f/SoilDyn
andrew-platt Aug 18, 2020
ae92aa2
SoilDyn: update regression test .fst files
andrew-platt Aug 19, 2020
8da25d9
Merge remote-tracking branch 'ebranlard/f/flexsub2' into f/SoilDyn
andrew-platt Aug 19, 2020
02c1e68
SoilDyn: Update .fst regression test files
andrew-platt Aug 19, 2020
147034c
Merge remote-tracking branch 'origin/dev' into f/SoilDyn
andrew-platt Sep 22, 2020
91bfa82
SoilDyn: add message that damping matrix in CalcOption 1 not supporte…
andrew-platt Sep 22, 2020
ce03900
Merge remote-tracking branch 'ebranlard/f/flexsub2' into f/SoilDyn
andrew-platt Sep 22, 2020
4a4d5ff
SlD: missing source file in SubDyn VS project
andrew-platt Sep 23, 2020
bd9fafa
OpenFAST_Algorithm: fix error in AdvanceStates description, and updea…
andrew-platt Oct 8, 2020
9e6cbd0
Merge tag 'v2.5.0' into f/SoilDyn
andrew-platt Mar 26, 2021
e163ab7
Merge remote-tracking branch 'OpenFAST/dev' into f/SoilDyn
andrew-platt Nov 4, 2021
7342237
Merge remote-tracking branch 'OpenFAST/dev' into f/SoilDyn
andrew-platt Jan 27, 2022
7618542
SlD: fix typos in driver _Types.f90 file
andrew-platt Mar 9, 2022
8060c6c
Merge remote-tracking branch 'OpenFAST/dev' into f/SoilDyn
andrew-platt Mar 9, 2022
d2990d4
Merge remote-tracking branch 'OpenFAST/dev' into f/SoilDyn
andrew-platt Aug 3, 2022
82a40d9
FAST_Registry: SoilDyn to SubDyn use y3Mesh
deslaughter Aug 22, 2022
9dff305
SoilDyn: Fix header in REDWINinterface.f90
deslaughter Aug 22, 2022
e8bb4eb
SubDyn: If Soil_K from SoilDyn, isFloating=false
deslaughter Aug 22, 2022
078f344
Added OC6_phaseII regression test
deslaughter Aug 22, 2022
493af4f
Update r-test to latest SoilDyn commit
deslaughter Aug 23, 2022
d418e0d
Merge branch 'dev' into f/SoilDyn
deslaughter Aug 23, 2022
b65dea7
Rework reg_test CMakeLists.txt to copy test data
deslaughter Aug 24, 2022
3d35641
reg_test/CMakeLists.txt fixed missing target
deslaughter Aug 24, 2022
8224f85
SoilDyn: updated version info
deslaughter Aug 24, 2022
7387f6e
reg_tests/CMakeLists.txt: reverted debug changes
deslaughter Aug 24, 2022
9d11e4e
Merge remote-tracking branch 'main/dev' into f/SoilDyn
deslaughter Aug 24, 2022
b916b49
FAST_Solver: transfer of ED outputs to SD inputs
deslaughter Aug 24, 2022
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
Prev Previous commit
Next Next commit
Merge remote-tracking branch 'ebranlard/f/flexsub2' into f/SlD_NoJaco…
…bian
  • Loading branch information
andrew-platt committed May 21, 2020
commit cc7e34cf6b29dd57261d62620f7e47405b756828
24 changes: 19 additions & 5 deletions .github/actions/compile-and-test/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,17 +1,31 @@
#!/bin/bash

cd /openfast

git fetch origin ${GITHUB_REF}:CI
git checkout CI
git submodule update

# Print the current git info
echo `git status`
echo `git log -1`
# Display the current git info
echo git-status from openfast:
git status

echo git-log from openfast:
git log -1

cd /openfast/reg_tests/r-test
echo `git status`
echo `git log -1`
echo git-status from r-test:
git status

echo git-log from r-test:
git log -1

cd /openfast

# Display the differences between this commit and `dev`
echo git-diff from ${GITHUB_REF} to dev:
git diff dev

# Move into the "build" directory, remove the old reg tests, and compile
cd /openfast/build
rm -rf reg_tests
Expand Down
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ packages: g++-8
sudo: true

before_install:
# linux configuration
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install g++-8 gfortran-8 libblas-dev liblapack3 liblapack-dev; fi
# linux configuration
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install gfortran libblas-dev liblapack-dev; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" && "$CPP_API" == "ON" ]]; then sudo apt-get install libopenmpi-dev libyaml-cpp-dev libhdf5-dev libxml2-dev; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then pyenv shell 3.7.1; fi
- apt-cache policy libblas-dev
Expand Down
49 changes: 0 additions & 49 deletions Makefile

This file was deleted.

6 changes: 0 additions & 6 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -114,12 +114,6 @@ Details for compiling
`developing <http://openfast.readthedocs.io/en/latest/source/dev/index.html>`_
OpenFAST on Unix-based and Windows machines are available at `readthedocs <http://openfast.readthedocs.io>`_.

Nightly Testing
---------------
The ``dev`` branch is automatically compiled and run through the test suite
nightly. The results are publicly available through the
`CDash Dashboard <http://my.cdash.org/index.php?project=OpenFAST&date=>`_.

Help
----
Please use `github issues <https://github.com/OpenFAST/OpenFAST/issues>`_ to:
Expand Down
2 changes: 1 addition & 1 deletion cmake/OpenfastFortranOptions.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ macro(set_fast_gfortran)

# debug flags
if(CMAKE_BUILD_TYPE MATCHES Debug)
set( CMAKE_Fortran_FLAGS_DEBUG "${CMAKE_Fortran_FLAGS_DEBUG} -fcheck=all -pedantic -fbacktrace" )
set( CMAKE_Fortran_FLAGS_DEBUG "${CMAKE_Fortran_FLAGS_DEBUG} " )
endif()

if(CYGWIN)
Expand Down
1 change: 0 additions & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ package:

- `OpenFAST Github Organization <https://github.com/OpenFAST>`_
- `Github Repository <https://github.com/OpenFAST/OpenFAST>`_
- `Nightly Tests <http://my.cdash.org/index.php?project=OpenFAST>`_

**Documentation Directory**

Expand Down
2 changes: 1 addition & 1 deletion docs/source/testing/regression_test.rst
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ Dependencies
------------
The following packages are required for regression testing:

- Python 3+
- Python 3.7+
- Numpy
- CMake and CTest (Optional)
- Bokeh 1.4 (Optional)
Expand Down
2 changes: 1 addition & 1 deletion docs/source/testing/unit_test.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Dependencies
------------
The following packages are required for unit testing:

- Python 3+
- Python 3.7+
- CMake
- pFUnit - Included in OpenFAST repo through a git-submodule

Expand Down
2 changes: 1 addition & 1 deletion glue-codes/openfast-cpp/src/OpenFAST.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ void fast::OpenFAST::step() {
// this advances the states, calls CalcOutput, and solves for next inputs. Predictor-corrector loop is imbeded here:
// (note OpenFOAM could do subcycling around this step)

//writeVelocityData(velNodeDataFile, iTurb, nt_global, cDriver_Input_from_FAST[iTurb], cDriver_Output_to_FAST[iTurb]);
writeVelocityData(velNodeDataFile, iTurb, nt_global, cDriver_Input_from_FAST[iTurb], cDriver_Output_to_FAST[iTurb]);

if ( isDebug() ) {

Expand Down
9 changes: 5 additions & 4 deletions glue-codes/openfast/src/FAST_Prog.f90
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,13 @@ PROGRAM FAST

CALL CheckArgs( InputFile, Flag=FlagArg, Arg2=CheckpointRoot )

IF ( TRIM(FlagArg) == 'H' ) THEN ! Exit after help prompt
CALL NormStop()

ELSE IF ( TRIM(FlagArg) == 'RESTART' ) THEN ! Restart from checkpoint file
IF ( TRIM(FlagArg) == 'RESTART' ) THEN ! Restart from checkpoint file
CALL FAST_RestoreFromCheckpoint_Tary(t_initial, Restart_step, Turbine, CheckpointRoot, ErrStat, ErrMsg )
CALL CheckError( ErrStat, ErrMsg, 'during restore from checkpoint' )

ELSEIF ( LEN( TRIM(FlagArg) ) > 0 ) THEN ! Any other flag, end normally
CALL NormStop()

ELSE
Restart_step = 0

Expand Down
32 changes: 10 additions & 22 deletions modules/aerodyn/src/AeroDyn_Driver_Subs.f90
Original file line number Diff line number Diff line change
Expand Up @@ -44,39 +44,27 @@ subroutine Dvr_Init(DvrData,errStat,errMsg )

CHARACTER(1000) :: inputFile ! String to hold the file name.
CHARACTER(200) :: git_commit ! String containing the current git commit hash
CHARACTER(20) :: FlagArg ! flag argument from command line

TYPE(ProgDesc), PARAMETER :: version = ProgDesc( 'AeroDyn Driver', '', '' ) ! The version number of this program.

ErrStat = ErrID_None
ErrMsg = ""


DvrData%OutFileData%unOutFile = -1

CALL NWTC_Init()
CALL NWTC_Init( ProgNameIN=version%Name )

InputFile = "" ! initialize to empty string to make sure it's input from the command line
CALL CheckArgs( InputFile, Flag=FlagArg )
IF ( LEN( TRIM(FlagArg) ) > 0 ) CALL NormStop()

! Display the copyright notice
CALL DispCopyrightLicense( version )
CALL DispCopyrightLicense( version%Name )
! Obtain OpenFAST git commit hash
git_commit = QueryGitVersion()
! Tell our users what they're running
CALL WrScr( ' Running '//GetNVD( version )//' a part of OpenFAST - '//TRIM(git_Commit)//NewLine//' linked with '//TRIM( GetNVD( NWTC_Ver ))//NewLine )

InputFile = "" ! initialize to empty string to make sure it's input from the command line
CALL CheckArgs( InputFile, ErrStat2 )
IF (LEN_TRIM(InputFile) == 0) THEN ! no input file was specified
call SetErrStat(ErrID_Fatal, 'The required input file was not specified on the command line.', ErrStat, ErrMsg, RoutineName)

!bjj: if people have compiled themselves, they should be able to figure out the file name, right?
IF (BITS_IN_ADDR==32) THEN
CALL NWTC_DisplaySyntax( InputFile, 'AeroDyn_Driver_Win32.exe' )
ELSEIF( BITS_IN_ADDR == 64) THEN
CALL NWTC_DisplaySyntax( InputFile, 'AeroDyn_Driver_x64.exe' )
ELSE
CALL NWTC_DisplaySyntax( InputFile, 'AeroDyn_Driver.exe' )
END IF

return
END IF
CALL WrScr( ' Running '//TRIM( version%Name )//' a part of OpenFAST - '//TRIM(git_Commit)//NewLine//' linked with '//TRIM( NWTC_Ver%Name )//NewLine )

! Read the AeroDyn driver input file
call Dvr_ReadInputFile(inputFile, DvrData, errStat2, errMsg2 )
Expand Down Expand Up @@ -642,7 +630,7 @@ subroutine Dvr_InitializeOutputFile( iCase, CaseData, OutFileData, errStat, errM
call OpenFOutFile ( OutFileData%unOutFile, trim(outFileData%Root)//'.'//trim(num2lstr(iCase))//'.out', ErrStat, ErrMsg )
if ( ErrStat >= AbortErrLev ) return

write (OutFileData%unOutFile,'(/,A)') 'Predictions were generated on '//CurDate()//' at '//CurTime()//' using '//trim(GetNVD(version))
write (OutFileData%unOutFile,'(/,A)') 'Predictions were generated on '//CurDate()//' at '//CurTime()//' using '//trim( version%Name )
write (OutFileData%unOutFile,'(1X,A)') trim(GetNVD(OutFileData%AD_ver))
write (OutFileData%unOutFile,'()' ) !print a blank line
! write (OutFileData%unOutFile,'(A,11(1x,A,"=",ES11.4e2,1x,A))' ) 'Case '//trim(num2lstr(iCase))//':' &
Expand Down
6 changes: 2 additions & 4 deletions modules/aerodyn/src/UnsteadyAero_Driver.f90
Original file line number Diff line number Diff line change
Expand Up @@ -82,13 +82,11 @@ program UnsteadyAero_Driver


! Display the copyright notice
CALL DispCopyrightLicense( version )
CALL DispCopyrightLicense( version%Name )
! Obtain OpenFAST git commit hash
git_commit = QueryGitVersion()
! Tell our users what they're running
CALL WrScr( ' Running '//GetNVD( version )//' a part of OpenFAST - '//TRIM(git_Commit)//NewLine//' linked with '//TRIM( GetNVD( NWTC_Ver ))//NewLine )


CALL WrScr( ' Running '//TRIM( version%Name )//' a part of OpenFAST - '//TRIM(git_Commit)//NewLine//' linked with '//TRIM( NWTC_Ver%Name )//NewLine )


! Parse the driver file if one was provided, if not, then set driver parameters using hardcoded values
Expand Down
7 changes: 2 additions & 5 deletions modules/aerodyn14/src/DWM.f90
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,11 @@ SUBROUTINE DWM_Init( InitInp, u, p, x, xd, z, OtherState, y, m, Interval, InitOu
CALL NWTC_Init( )

! Display the module information

!CALL DispNVD( DWM__Ver )

! read the wind file for DWM

CALL WrScr('')
CALL DispNVD(DWM_Ver)

! read the wind file for DWM

CALL WrScr(" Reading the wind file for DWM simulation." )

! InitInp%IfW%InputFileName is already set in FAST
Expand Down
4 changes: 2 additions & 2 deletions modules/beamdyn/src/Driver_Beam.f90
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,11 @@ PROGRAM BeamDyn_Driver_Program

CALL NWTC_Init()
! Display the copyright notice
CALL DispCopyrightLicense( version )
CALL DispCopyrightLicense( version%Name )
! Obtain OpenFAST git commit hash
git_commit = QueryGitVersion()
! Tell our users what they're running
CALL WrScr( ' Running '//GetNVD( version )//' a part of OpenFAST - '//TRIM(git_Commit)//NewLine//' linked with '//TRIM( GetNVD( NWTC_Ver ))//NewLine )
CALL WrScr( ' Running '//TRIM( version%Name )//' a part of OpenFAST - '//TRIM(git_Commit)//NewLine//' linked with '//TRIM( NWTC_Ver%Name )//NewLine )

! -------------------------------------------------------------------------
! Initialization of glue-code time-step variables
Expand Down
4 changes: 2 additions & 2 deletions modules/hydrodyn/src/HydroDyn_DriverCode.f90
Original file line number Diff line number Diff line change
Expand Up @@ -157,11 +157,11 @@ PROGRAM HydroDynDriver
call nwtc_init()

! Display the copyright notice
CALL DispCopyrightLicense( version )
CALL DispCopyrightLicense( version%Name )
! Obtain OpenFAST git commit hash
git_commit = QueryGitVersion()
! Tell our users what they're running
CALL WrScr( ' Running '//GetNVD( version )//' a part of OpenFAST - '//TRIM(git_Commit)//NewLine//' linked with '//TRIM( GetNVD( NWTC_Ver ))//NewLine )
CALL WrScr( ' Running '//TRIM( version%Name )//' a part of OpenFAST - '//TRIM(git_Commit)//NewLine//' linked with '//TRIM( NWTC_Ver%Name )//NewLine )

IF ( command_argument_count() /= 1 ) THEN
CALL print_help()
Expand Down
3 changes: 0 additions & 3 deletions modules/hydrodyn/src/WAMIT2.f90
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,6 @@ MODULE WAMIT2
! INTEGER(IntKi), PARAMETER :: DataFormatID = 1 !< Update this value if the data types change (used in WAMIT_Pack)
TYPE(ProgDesc), PARAMETER :: WAMIT2_ProgDesc = ProgDesc( 'WAMIT2', '', '' )
!< This holds the name of the program, version info, and date.
!! It is used by the DispNVD routine in the library and as header
!! information in output files.

REAL(DbKi), PARAMETER, PRIVATE :: OnePlusEps = 1.0 + EPSILON(OnePlusEps) ! The number slighty greater than unity in the precision of DbKi.

Expand Down Expand Up @@ -278,7 +276,6 @@ SUBROUTINE WAMIT2_Init( InitInp, u, p, x, xd, z, OtherState, y, m, Interval, Ini
!> Initialize the NWTC Subroutine Library and display the information about this module.

CALL NWTC_Init() ! WAMIT2_ProgDesc%Name, '('//WAMIT2_ProgDesc%Ver//','//WAMIT2_ProgDesc%Date//')', EchoLibVer = .FALSE. )
!CALL DispNVD( WAMIT2_ProgDesc )



Expand Down
5 changes: 0 additions & 5 deletions modules/hydrodyn/src/Waves2.f90
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@ MODULE Waves2
! INTEGER(IntKi), PARAMETER :: DataFormatID = 1 !< Update this value if the data types change (used in Waves2_Pack)
TYPE(ProgDesc), PARAMETER :: Waves2_ProgDesc = ProgDesc( 'Waves2', '', '' )
!< This holds the name of the program, version info, and date.
!! It is used by the DispNVD routine in the library and as header
!! information in output files.

REAL(DbKi), PARAMETER, PRIVATE :: OnePlusEps = 1.0 + EPSILON(OnePlusEps) ! The number slighty greater than unity in the precision of DbKi.

Expand Down Expand Up @@ -223,9 +221,6 @@ SUBROUTINE Waves2_Init( InitInp, u, p, x, xd, z, OtherState, y, misc, Interval,
! Initialize the NWTC Subroutine Library and display the information about this module.

CALL NWTC_Init( )
!CALL DispNVD( Waves2_ProgDesc )




!-----------------------------------------------------------------------------
Expand Down
10 changes: 6 additions & 4 deletions modules/inflowwind/src/IfW_HAWCWind.f90
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ MODULE IfW_HAWCWind
PUBLIC :: IfW_HAWCWind_CalcOutput

INTEGER(IntKi), PARAMETER :: nc = 3 !< number of wind components
INTEGER(IntKi), PARAMETER :: WindProfileType_None = -1 !< don't add wind profile; already included in input data
INTEGER(IntKi), PARAMETER :: WindProfileType_Constant = 0 !< constant wind
INTEGER(IntKi), PARAMETER :: WindProfileType_Log = 1 !< logarithmic
INTEGER(IntKi), PARAMETER :: WindProfileType_PL = 2 !< power law
Expand Down Expand Up @@ -95,8 +96,9 @@ SUBROUTINE IfW_HAWCWind_Init(InitInp, p, MiscVars, Interval, InitOut, ErrStat, E
p%nz = InitInp%nz
p%RefHt = InitInp%RefHt
p%URef = InitInp%URef
p%InitPosition = 0.0_ReKi ! bjj: someday we may want to let the users give an offset time/position
p%InitPosition(1) = InitInp%dx
p%InitPosition = InitInp%InitPosition
if (EqualRealNos(InitInp%InitPosition(1), 0.0_ReKi)) p%InitPosition(1) = InitInp%dx ! This is the old behaviour


p%deltaXInv = 1.0 / InitInp%dx
p%deltaYInv = 1.0 / InitInp%dy
Expand Down Expand Up @@ -145,7 +147,7 @@ SUBROUTINE IfW_HAWCWind_Init(InitInp, p, MiscVars, Interval, InitOut, ErrStat, E
WRITE(InitInp%SumFileUnit,'(A)', IOSTAT=TmpErrStat) 'HAWC wind type. Read by InflowWind sub-module '//TRIM(GetNVD(IfW_HAWCWind_Ver))

WRITE(InitInp%SumFileUnit,'(A34,G12.4)',IOSTAT=TmpErrStat) ' Reference height (m): ',p%RefHt
WRITE(InitInp%SumFileUnit,'(A34,G12.4)',IOSTAT=TmpErrStat) ' Timestep (s): ',p%deltaXInv / p%URef
WRITE(InitInp%SumFileUnit,'(A34,G12.4)',IOSTAT=TmpErrStat) ' Timestep (s): ',1.0_ReKi / (p%deltaXInv * p%URef)
WRITE(InitInp%SumFileUnit,'(A34,I12)', IOSTAT=TmpErrStat) ' Number of timesteps: ',p%nx
WRITE(InitInp%SumFileUnit,'(A34,G12.4)',IOSTAT=TmpErrStat) ' Mean windspeed (m/s): ',p%URef
WRITE(InitInp%SumFileUnit,'(A)', IOSTAT=TmpErrStat) ' Time range (s): [ '// &
Expand Down Expand Up @@ -213,7 +215,7 @@ SUBROUTINE ValidateInput(InitInp, ErrStat, ErrMsg)
if (InitInp%WindProfileType == WindProfileType_Log) then
if ( InitInp%z0 < 0.0_ReKi .or. EqualRealNos( InitInp%z0, 0.0_ReKi ) ) &
call SetErrStat( ErrID_Fatal, 'The surface roughness length, Z0, must be greater than zero', ErrStat, ErrMsg, RoutineName )
elseif ( InitInp%WindProfileType < WindProfileType_Constant .or. InitInp%WindProfileType > WindProfileType_PL) then
elseif ( InitInp%WindProfileType < WindProfileType_None .or. InitInp%WindProfileType > WindProfileType_PL) then
call SetErrStat( ErrID_Fatal, 'The WindProfile type must be 0 (constant), 1 (logarithmic) or 2 (power law).', ErrStat, ErrMsg, RoutineName )
end if

Expand Down
1 change: 1 addition & 0 deletions modules/inflowwind/src/IfW_HAWCWind.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ typedef ^ ^ ReKi RefHt
typedef ^ ^ ReKi URef - 0 - "Mean u-component wind speed at the reference height" meters
typedef ^ ^ ReKi PLExp - 0 - "Power law exponent (used for PL wind profile type only)" -
typedef ^ ^ ReKi Z0 - 0 - "Surface roughness length (used for LOG wind profile type only)" -
typedef ^ ^ ReKi InitPosition 3 0 - "the initial position of grid (distance in FF is offset)" meters


# Init Output
Expand Down
Loading
You are viewing a condensed version of this merge commit. You can view the full changes here.