How to use one block's information and put in a different block's boundary condition with existing kernels? #24084
-
|
For a battery, there will be an anode, cathode and electrolyte separately represented as blocks. Say block 1 for anode, 2 for electrolyte and 3 for cathode. Each block will have their diffusion ODEs for evolution of their respective ionic concentrations say c_a, c_e and c_c for blocks 1, 2 and 3 respectively. The connection between the blocks are only through the boundary conditions where block 1 is connected to block 2 via some current boundary condition in which c_e (block 2 variable) extreme cell value appears. The same is for the other blocks. Is it possible to use some existing kernels to perform this without coding anything. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 9 replies
-
|
Hello I dont think we have a boundary condition that depends directly on the extreme value of a variable over one block. The boundary condition may or may not already exist in the framework, we would need to know the expression to determine that.
You mean PDE right? Or is steady state 1D diffusion? Guillaume |
Beta Was this translation helpful? Give feedback.
-
|
It is in this folder test/tests/interfacekernels/2d_interface/coupled_value_coupled_flux.i |
Beta Was this translation helpful? Give feedback.
-
|
I could solve. Thanks for helping out! |
Beta Was this translation helpful? Give feedback.
-
|
Okay. Thankyou! I will try this out |
Beta Was this translation helpful? Give feedback.

Hello
I dont think we have a boundary condition that depends directly on the extreme value of a variable over one block.
You could get a prototype going where this extreme gets computed using an ExtremeValuePostprocessor, then use this in a ParsedMaterial or a ParsedAux (the Jacobian will be imperfect, but this is just a first draft).
You can then use the material property or auxiliary variable defined to help build this boundary condition
The boundary condition may or may not already exist in the framework, we would need to know the expression to determine that.