Function Neumann BC Notation for Species Flux #104
-
How does one properly handle setting a BC for a species as a Neumann in the molar-log form? For example, let's say I want the following Neumann BC at the top of a 2D simulation, so that species are entering into the domain from the top: [some_BC] Where would I put the 'log( 1/ 6.022e23)', if at all, to put the value into molar-log form while conserving the flux & direction? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
The way you can convert between the Zapdos value of a molar-log variable the density you want is with the expression n = exp( value ) * 6.022e23 For example a conversion from a Zapdos value of -17.9135 translates to a density of 1e16. With that being said you will want to include the entire expression inside the logarithm so your expression would look like log( -1 * n * ( a - b * x^2 ) / 6.022e23 ) For another example see the IC functions in this file |
Beta Was this translation helpful? Give feedback.
The way you can convert between the Zapdos value of a molar-log variable the density you want is with the expression
n = exp( value ) * 6.022e23
For example a conversion from a Zapdos value of -17.9135 translates to a density of 1e16. With that being said you will want to include the entire expression inside the logarithm so your expression would look like
log( -1 * n * ( a - b * x^2 ) / 6.022e23 )
For another example see the IC functions in this file
https://github.com/shannon-lab/zapdos/blob/devel/test/tests/Lymberopoulos_rf_discharge/Lymberopoulos_with_argon_metastables.i