From d683f6fbb0917e01367166a60cefac3aee14e5f0 Mon Sep 17 00:00:00 2001
From: dave <dave@dtu.dk>
Date: Fri, 23 Sep 2016 15:14:41 +0200
Subject: [PATCH] prepost: updated docs on stand alone 64-bit turbulence
 generator

---
 docs/howto-make-dlcs.md     | 23 +++++++++++++++++++++++
 wetb/prepost/Simulations.py | 24 +++++++++++++++++++++++-
 2 files changed, 46 insertions(+), 1 deletion(-)

diff --git a/docs/howto-make-dlcs.md b/docs/howto-make-dlcs.md
index d6a92f59..ce0ea476 100644
--- a/docs/howto-make-dlcs.md
+++ b/docs/howto-make-dlcs.md
@@ -369,6 +369,29 @@ node for which the a fixed file name is assumed
 * ```[copyto_generic] = ['ESYSMooring_init.dat']```
 
 
+### Tags required for standalone Mann 64-bit turbulence generator
+
+```dlctemplate.py``` has a flag named ```--pbs_turb```, which when activated
+generates PBS input files containing the instructions to generate all required
+turbulence boxes using the 64-bit version of the stand alone Mann turbulence
+box generator. The appropriate input parameters are taken from the following
+tags:
+
+* ```[tu_model]```
+* ```[Turb base name]```
+* ```[MannAlfaEpsilon]```
+* ```[MannL]```
+* ```[MannGamma]```
+* ```[tu_seed]```
+* ```[turb_nr_u]``` : number of grid points in the u direction
+* ```[turb_nr_v]``` : number of grid points in the v direction
+* ```[turb_nr_w]``` : number of grid points in the w direction
+* ```[turb_dx]``` : grid spacing in meters in the u direction
+* ```[turb_dy]``` : grid spacing in meters in the v direction
+* ```[turb_dz]``` : grid spacing in meters in the w direction
+* ```[high_freq_comp]```
+
+
 Launching the jobs on the cluster
 ---------------------------------
 
diff --git a/wetb/prepost/Simulations.py b/wetb/prepost/Simulations.py
index 89ea46e4..3e8db04d 100755
--- a/wetb/prepost/Simulations.py
+++ b/wetb/prepost/Simulations.py
@@ -5271,7 +5271,22 @@ class Results(object):
 class MannTurb64(prepost.PBSScript):
     """
     alfaeps, L, gamma, seed, nr_u, nr_v, nr_w, du, dv, dw high_freq_comp
-    mann_turb_x64.exe fname 1.0 29.4 3.0 1209 256 32 32 2.0 5 5 true
+    mann_turb_x64.exe fname 1.0 29.4 3.0 1209 256 32 32 2.0 5 5 true.
+
+    Following tags have to be defined:
+        * [tu_model]
+        * [Turb base name]
+        * [MannAlfaEpsilon]
+        * [MannL]
+        * [MannGamma]
+        * [tu_seed]
+        * [turb_nr_u]
+        * [turb_nr_v]
+        * [turb_nr_w]
+        * [turb_dx]
+        * [turb_dy]
+        * [turb_dz]
+        * [high_freq_comp]
     """
 
     def __init__(self, silent=False):
@@ -5287,6 +5302,13 @@ class MannTurb64(prepost.PBSScript):
         self.pbs_in_dir = 'pbs_in_turb/'
 
     def gen_pbs(self, cases):
+        """
+        Parameters
+        ----------
+
+        cases : dict of dicts
+            each key holding a dictionary with tag/value pairs.
+        """
 
         case0 = cases[list(cases.keys())[0]]
         # make sure the path's end with a trailing separator, why??
-- 
GitLab