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

Parsing cycle-parameter types #25

Open
samuelduchesne opened this issue Apr 14, 2020 · 0 comments
Open

Parsing cycle-parameter types #25

samuelduchesne opened this issue Apr 14, 2020 · 0 comments
Labels
help wanted Extra attention is needed

Comments

@samuelduchesne
Copy link
Owner

Some types, such as the Type14h, define parameters using a cycle. Since the number of cycles in not defenined in the parameters, but rather is implied in the number of parameter (34 in the example bellow), the current parsing logic canoot parse types such as type14h.

Type14h

This type is written in the deck file like this:

* Model "Load profile" (Type 14)
* 

UNIT 9 TYPE 14	 Load profile
*$UNIT_NAME Load profile
*$MODEL .\Utility\Forcing Functions\General\Type14h.tmf
*$POSITION 57 563
*$LAYER Main # # # 
PARAMETERS 34
0		! 1 Initial value of time
0		! 2 Initial value of function
7		! 3 Time at point-1
0		! 4 Value at point -1
7		! 5 Time at point-2
0.2		! 6 Value at point -2
9		! 7 Time at point-3
0.2		! 8 Value at point -3
9		! 9 Time at point-4
0		! 10 Value at point -4
11		! 11 Time at point-5
0		! 12 Value at point -5
11		! 13 Time at point-6
0.1		! 14 Value at point -6
13		! 15 Time at point-7
0.1		! 16 Value at point -7
13		! 17 Time at point-8
0		! 18 Value at point -8
18		! 19 Time at point-9
0		! 20 Value at point -9
18		! 21 Time at point-10
0.1		! 22 Value at point -10
22		! 23 Time at point-11
0.1		! 24 Value at point -11
22		! 25 Time at point-12
0		! 26 Value at point -12
24		! 27 Time at point-13
0		! 28 Value at point -13
7		! 29 Time at point-14
0		! 30 Value at point -14
7		! 31 Time at point-15
0		! 32 Value at point -15
7		! 33 Time at point-16
0		! 34 Value at point -16
*------------------------------------------------------------------------------
@samuelduchesne samuelduchesne added the help wanted Extra attention is needed label Apr 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant