Skip to content

Fixes to reduce lband of cathode#78

Open
mglasser16 wants to merge 17 commits intocoresresearch:mainfrom
mglasser16:Cathode
Open

Fixes to reduce lband of cathode#78
mglasser16 wants to merge 17 commits intocoresresearch:mainfrom
mglasser16:Cathode

Conversation

@mglasser16
Copy link
Contributor

This pull request is a work in progress, mostly creating it for discussion about improving the code in our 1v1. Not intended for edits to be added to batcan.

Copy link
Contributor

@decaluwe decaluwe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for pushing this - looking forward to discussing, later!


# Phase volume fractions
eps_host = np.array([inputs['eps_host']])
eps_host = eps_host[0]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just noting this line, which overwrites 57, so we can discuss it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed

eps_product = SV_loc[SVptr['eps_product'][j]]
eps_elyte = 1. - eps_product - self.eps_host[j]

self.elyte_microstructure = eps_elyte**1.5
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similar to above, this duplicates/overwrites line 98.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, line 98 is necessary to initialize for the separator, however self.elyte_microstructure needs to be updated for each node while the code is running.

* self.dyInv)/eps_elyte

eps_elyte = 1. - eps_product - self.eps_host[0]
self.elyte_microstructure = eps_elyte**1.5
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know that these lines do anything...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

resets node to zero, because it is passed to separator as the final node.

@mglasser16
Copy link
Contributor Author

@decaluwe The new commits should be mergeable now.

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

Successfully merging this pull request may close these issues.

2 participants