Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
W
WindEnergyToolbox
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
toolbox
WindEnergyToolbox
Commits
173bda5b
Commit
173bda5b
authored
7 years ago
by
Jennifer Rinker
Browse files
Options
Downloads
Patches
Plain Diff
Formatting issues in tutorial 1
Line breaks, code formatting, etc. All minor.
parent
c7388b6d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!30
Code/tutorial for generating master Excel sheets (Issue #51)
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs/tutorials/1-creating-master-excel.md
+20
-17
20 additions, 17 deletions
docs/tutorials/1-creating-master-excel.md
with
20 additions
and
17 deletions
docs/tutorials/1-creating-master-excel.md
+
20
−
17
View file @
173bda5b
...
...
@@ -10,21 +10,25 @@ the subordinate Excel files and a master htc file.
4.
Submit all PBS job scripts to the cluster
5.
Post-process results
6.
Visualize results
This tutorial presents how to accomplish Step 1.
Note that it is possible to customize your simulations by skipping/modifying
steps.
Such a procedure will be discussed in a later tutorial.
## Background: master Excel file
If there are any problems with this tutorial, please
[
submit an issue
](
https://gitlab.windenergy.dtu.dk/toolbox/WindEnergyToolbox/issues
)
.
## 1. Background: Master Excel File
The master Excel file is an Excel file that is used to create subordinate
Excel files for generation of htc files and PBS job scripts.
### Master file structure
The master file has a main tab, called "Main", that defines default
values
and necessary functions that are called in the other tabs.
The master
Excel
file has a main tab, called "Main", that defines default
values
and necessary functions that are called in the other tabs.
Each other tab defines a new case, and one subordinate Excel file will be
generated for each case.
There are three variable types in the master Excel file:
...
...
@@ -63,7 +67,7 @@ file match the tag names in your master htc file.
Thus,
**
be sure to verify that your tag names in your master Excel and master
htc files are consistent
**
.
## Tutorial
##
2.
Tutorial
The procedure for creating the master Excel sheet is simple: each desired DLB
is defined in a tab-delimited text file, and these are loaded into a single
...
...
@@ -81,29 +85,28 @@ Generate the master Excel file in a few easy steps:
2. If you are running the tutorial locally (i.e., not on Gorm), navigate to
the Wind Energy Toolbox tutorials directory.
3. Run the code to generate the Excel file from a folder of text files:
* Windows: ```>> python ..\..\wetb\prepost\write_master.py --folder
data\DLCs_onshore --filename DLCs_onshore.xlsx```
* Mac/Linux: ```$ python ../../wetb/prepost/write_master.py --folder
data/DLCs_onshore --filename DLCs_onshore.xlsx```
* Gorm: ```python
/home/MET/repositories/toolbox/WindEnergyToolbox/wetb/prepost/write_master.
py
--folder=/home/MET/repositories/toolbox/WindEnergyToolbox/wetb/docs/tutoria
ls/data/DLCs_onshore --filename=DLCs_onshore.xlsx```
* Windows:
```
>> python ..
\.
.
\w
etb
\p
repost
\w
rite_master.py --folder data
\D
LCs_onshore --filename DLCs_onshore.xlsx
```
* Mac/Linux:
```
$ python ../../wetb/prepost/write_master.py --folder data/DLCs_onshore --filename DLCs_onshore.xlsx
```
* Gorm:
```
python /home/MET/repositories/toolbox/WindEnergyToolbox/wetb/prepost/write_master.py --folder=/home/MET/repositories/toolbox/WindEnergyToolbox/wetb/docs/tutoria
ls/data/DLCs_onshore --filename=DLCs_onshore.xlsx
```
The master Excel file "DLCs_onshore.xlsx" should now be in the your current
directory.
Note that we have used the parser options ```
--folder
``` and ```
--filename
```
to specify the folder with the text files and the name of the resulting Excel
file.
Other parser options are also available
(See doc string in
```
write_master.py
``` function.)
Other parser options are also available
.
(See doc string in
```
write_master.py
``` function.)
## Generation options
##
3.
Generation options
See doc string in ```
write_master.py
```
function.
## Issues
##
4.
Issues
If there are any problems with this tutorial, please
[
submit an issue
](
https://gitlab.windenergy.dtu.dk/toolbox/WindEnergyToolbox/issues
)
.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment