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

Problem to assign element content after stock-driven model #17

Open
TUBSAiPTL opened this issue Mar 25, 2022 · 1 comment
Open

Problem to assign element content after stock-driven model #17

TUBSAiPTL opened this issue Mar 25, 2022 · 1 comment

Comments

@TUBSAiPTL
Copy link

TUBSAiPTL commented Mar 25, 2022

Hi,

I am doing a stock-driven model for batteries "b" (8 types) but I am struggling to assign the element content "e" (9 elements) for the inflows and outflows afterwards.

I am able to calculate the model and also assign a vehicle "g" (6 types) market share afterwards. Then the outflow (t,g,b) looks as followed (inflow looks the same). The unit is number of batteries/vehicles.
Bildschirmfoto 2022-03-24 um 12 32 22
Bildschirmfoto 2022-03-24 um 12 34 26

Now I want to assign the element content to the flows depending on battery type and vehicle type. My parameter file is a list with the data structure "bge" and "kg" as a unit. However, after assign it, the total number of batteries (in this case shown for the inflow) rises as well:
Bildschirmfoto 2022-03-24 um 12 20 34

I feel like this has something to do with my array Einstein sum of the matrixes, but cannot figure it out. This is my code and I would be thankful if you could help me out.

image

@stefanpauliuk
Copy link
Member

Hi @TUBSAiPTL, my reply is quite late, but there are just too many things to handle. From the code you supply I cannot understand the aspect/index structure of all variables, but can gues that F_1_2 has a time t aspect and F_2_3 and S_2 have both a time t and an age-cohort c aspect.
Now the time t is the model time, and for the inflow F_1_2 that is produced/consumed at time t and then becomes the age-cohort c that traces the inflow from any year c = t over the subsequent years.
Hence, the element composition you are applying to actually refers to age-cohorts c and not to model time t, and (without that I have proporly check your code).
The other point could be the material content parameter. Which elements do you consider? Do the numbers in the parameter add up to the total mass if you sum up over aspect e?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants