Skip to content

Commit

Permalink
Add PPs for current at the coil's terminals
Browse files Browse the repository at this point in the history
  • Loading branch information
nmnobre committed Aug 23, 2024
1 parent 9d4d0c1 commit fe5f166
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
2 changes: 1 addition & 1 deletion input/AForm.i
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
type = CoupledGrad
variable = A
coupled_scalar_variable = V
function = ${copper_econductivity}*${voltage_amplitude}*sin(${voltage_wfrequency}*t)
function = ${copper_econductivity}*sin(${voltage_wfrequency}*t)
block = coil
[]
[]
Expand Down
19 changes: 18 additions & 1 deletion input/VLaplace.i
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
!include Parameters.i

[Mesh]
[]

Expand Down Expand Up @@ -26,7 +28,7 @@
type = DirichletBC
variable = V
boundary = coil_in
value = 1
value = ${voltage_amplitude}
[]
[out]
type = DirichletBC
Expand All @@ -36,6 +38,21 @@
[]
[]

[Postprocessors]
[I(in)]
type = SideDiffusiveFluxIntegral
variable = V
boundary = coil_in
diffusivity = -${copper_econductivity}
[]
[I(out)]
type = SideDiffusiveFluxIntegral
variable = V
boundary = coil_out
diffusivity = ${copper_econductivity}
[]
[]

[Executioner]
type = Steady
solve_type = LINEAR
Expand Down

0 comments on commit fe5f166

Please sign in to comment.