From 23820bc2ec77ab79e1a9a8491b719c36e1324e7f Mon Sep 17 00:00:00 2001 From: dave <dave@dtu.dk> Date: Tue, 12 Apr 2016 18:06:04 +0200 Subject: [PATCH] default neq for post-pro is the 1 Hz equivalent load --- docs/howto-make-dlcs.md | 4 ++-- wetb/prepost/dlctemplate.py | 11 ++++++++--- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/docs/howto-make-dlcs.md b/docs/howto-make-dlcs.md index b902e98..ce08abe 100644 --- a/docs/howto-make-dlcs.md +++ b/docs/howto-make-dlcs.md @@ -118,7 +118,6 @@ From Linux/Mac, you should be able to mount using either of the following addresses: ``` //mimer.risoe.dk/hawc2sim -//mimer.risoe.dk/well/hawc2sim //gorm.risoe.dk/$USER ``` You can use either ```sshfs``` or ```mount -t cifs``` to mount the discs. @@ -534,7 +533,8 @@ optional arguments: --csv Save data also as csv file (default=False) --years YEARS Total life time in years (default=20) --no_bins NO_BINS Number of bins for fatigue loads (default=46) - --neq NEQ Equivalent cycles neq (default=1e6) + --neq NEQ Equivalent cycles neq, default 1 Hz equivalent load + (neq = simulation duration in seconds) --envelopeblade calculate the load envelope for sensors on the blades --envelopeturbine calculate the load envelope for sensors on the turbine ``` diff --git a/wetb/prepost/dlctemplate.py b/wetb/prepost/dlctemplate.py index 8158ad9..bf42c8a 100755 --- a/wetb/prepost/dlctemplate.py +++ b/wetb/prepost/dlctemplate.py @@ -265,11 +265,14 @@ def launch_param(sim_id): def post_launch(sim_id, statistics=True, rem_failed=True, check_logs=True, force_dir=False, update=False, saveinterval=2000, csv=False, - m=[1, 3, 4, 5, 6, 8, 10, 12, 14], neq=1e6, no_bins=46, + m=[1, 3, 4, 5, 6, 8, 10, 12, 14], neq=None, no_bins=46, years=20.0, fatigue=True, nn_twb=1, nn_twt=20, nn_blr=4, A=None, save_new_sigs=False, envelopeturbine=False, envelopeblade=False, save_iter=False, AEP=False): + if neq < 0: + neq = None + # ========================================================================= # check logfiles, results files, pbs output files # logfile analysis is written to a csv file in logfiles directory @@ -406,8 +409,10 @@ if __name__ == '__main__': dest='years', help='Total life time in years') parser.add_argument('--no_bins', type=float, default=46.0, action='store', dest='no_bins', help='Number of bins for fatigue loads') - parser.add_argument('--neq', type=float, default=1e6, action='store', - dest='neq', help='Equivalent cycles neq') + parser.add_argument('--neq', type=float, default=-1.0, action='store', + dest='neq', help='Equivalent cycles neq, default 1 Hz ' + 'equivalent load (neq = simulation ' + 'duration in seconds)') parser.add_argument('--nn_twt', type=float, default=20, action='store', dest='nn_twt', help='Node number tower top') parser.add_argument('--nn_blr', type=float, default=4, action='store', -- GitLab