switch (type)
{
case Moose::Element:
r = -_test[_i][_qp] * (_D_neighbor[_qp] * _grad_neighbor_value[_qp] * _normals[_qp]);
case Moose:Neighbor:
r = -_test_neighbor[_i][_qp] * (_D[_qp] * _grad_u[_qp] * _normals[_qp] + _sigma[_qp]);
}
[Variables]
[./sigma_left]
order = FIRST
family = SCALAR
initial_condition = 0
[../]
[./sigma_right]
order = FIRST
family = SCALAR
initial_condition = 0
[../]
...(other variables)
[]
[ScalarKernels]
[./sigma_left_dt]
type = ODETimeDerivative
variable = sigma_left
[../]
[./sigma_left_rhs]
type = BoundaryFlux
current = left_current
variable = sigma_left
[../]
[./sigma_right_dt]
type = ODETimeDerivative
variable = sigma_right
[../]
[./sigma_right_rhs]
type = BoundaryFlux
current = right_current
variable = sigma_right
[../]
[]
[PostProcessors]
[./left_current]
type = SideCurrent
variable = em
mobility = muem
potential = potential
r = 0
mean_en = mean_en
ions = 'Arp Ar2p'
Arp = Arp # deprecated; doesn't do anything but hasn't been removed yet
position_units = ${dom0Scale}
boundary = 'master10_interface'
[../]
[./right_current]
type = SideCurrent
variable = em
mobility = muem
potential = potential
r = 0
mean_en = mean_en
ions = 'Arp Ar2p'
Arp = Arp # deprecated; doesn't do anything but hasn't been removed yet
position_units = ${dom0Scale}
boundary = 'master12_interface'
[../]
[]
--
You received this message because you are subscribed to the Google Groups "zapdos-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to zapdos-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/zapdos-users/06bcde48-2bf4-4c5b-a2ac-e36877356a81%40googlegroups.com.
If you've been struggling with it for a couple years, then it's probably a pretty challenging problem which will take a nontrivial amount of time to work through.
I'm curious whether we could set up some contract work for an INL employee (me) to look at it because I don't think I can justify working on this task with one of my existing charge numbers. I haven't looked into such a thing. I'll talk to my other MOOSE team members. I'm curious if Davide or Steve has any thought on it.
To unsubscribe from this group and stop receiving emails from it, send an email to zapdos...@googlegroups.com.
If you've been struggling with it for a couple years, then it's probably a pretty challenging problem which will take a nontrivial amount of time to work through.It's certainly challenging for me! I haven't been working on it consistently over 2 years, just on and off whenever I get a chance.I'm curious whether we could set up some contract work for an INL employee (me) to look at it because I don't think I can justify working on this task with one of my existing charge numbers. I haven't looked into such a thing. I'll talk to my other MOOSE team members. I'm curious if Davide or Steve has any thought on it.That would certainly be helpful. I have a meeting with Davide tomorrow afternoon so I'll mention it to him.In the meantime I'll try to simplify this problem a bit...maybe start with a constant surface charge so I can make sure the interfacekernel is correct and remove all the postprocessor nonsense.On a side note, I tried using MeshSideSetGenerator to create a sideset block that the surface charge would live on. It either doesn't work on 1D or I was using it incorrectly (I get the error "Cannot reinit 0D LAGRANGE elements!"), but do you think that would be a viable path forward in 2D? I'm not sure how InterfaceKernels would work in that case, but I was going to try to set up a surface charge variable on that sideset.
To unsubscribe from this group and stop receiving emails from it, send an email to zapdos-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/zapdos-users/21b2c44a-f809-4008-9571-fe6a04876163%40googlegroups.com.
Variables cannot be boundary restricted; they must be block restricted. It sounds like you want to create a lower dimensional block. We have a LowerDBlockFromSidesetGenerator that can do that.
The problem then is that we don't currently have a means for pulling that lower dimensional solution into an interface kernel or into a boundary condition. Which of these would you want? Both? Let me know and I will create a MOOSE issue. This would be another good thing for me to contract on...
--
You received this message because you are subscribed to the Google Groups "zapdos-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to zapdos-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/zapdos-users/deb6b173-8e7c-4f4a-92f2-7a4aaf4c6615%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "zapdos-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to zapdos-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/zapdos-users/deb6b173-8e7c-4f4a-92f2-7a4aaf4c6615%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "zapdos-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to zapdos-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/zapdos-users/bcb44a11-379a-4153-af29-4e1357789bb6%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to zapdos...@googlegroups.com.
If you want to include the Sakiyama and Lymberopoulos BCs into the new surface charge calculation, I think the most user friendly option (though not the cleanest for the .C file) is to include all of them into one Object with user options based on the assumptions of the BCs (the default option being the Hagelaar BCs).
--
You received this message because you are subscribed to the Google Groups "zapdos-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to zapdos-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/zapdos-users/409e160f-be8d-45db-ae79-da9e825e6647%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to zapdos...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to zapdos-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/zapdos-users/00a09961-e2b2-4086-aa6b-8427f993c4ee%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/zapdos-users/CANFcJrEyD6wn%3Dc4Ge%2BhGGrmN0bs3fpEEyiBLtBkyXSeOk3gtHw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/zapdos-users/00a09961-e2b2-4086-aa6b-8427f993c4ee%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "zapdos-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to zapdos...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/zapdos-users/CANFcJrEyD6wn%3Dc4Ge%2BhGGrmN0bs3fpEEyiBLtBkyXSeOk3gtHw%40mail.gmail.com.
To unsubscribe from this group and stop receiving emails from it, send an email to zapdos-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/zapdos-users/9b027fd7-711d-46fa-af3c-5f7ea06aa6e8%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/zapdos-users/9b027fd7-711d-46fa-af3c-5f7ea06aa6e8%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to zapdos-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/zapdos-users/e8ff505f-f3ac-4755-9ff5-326d989c9c9c%40googlegroups.com.