Skip to content
Snippets Groups Projects
Commit d787223b authored by François Henrotte's avatar François Henrotte
Browse files

minor changes

parent 4209cc7b
No related branches found
No related tags found
No related merge requests found
Pipeline #
...@@ -128,7 +128,7 @@ Group{ ...@@ -128,7 +128,7 @@ Group{
FunctionSpace { FunctionSpace {
/* The magic in the treatment of global quantitities by GetDP is in the fact /* The magic in the treatment of global quantitities by GetDP is in the fact
that nearly all is done at the level of the FunctionSpace definition. that nearly all the work is done at the level of the FunctionSpace definition.
The finite element expansion is The finite element expansion is
...@@ -152,13 +152,13 @@ FunctionSpace { ...@@ -152,13 +152,13 @@ FunctionSpace {
} }
Constraint { Constraint {
{ NameOfCoef vn; EntityType NodesOf; { NameOfCoef vn; EntityType NodesOf;
NameOfConstraint Dirichlet_Ele; } // unused in this model NameOfConstraint Dirichlet_Ele; } // unused in this model, left for completeness
{ NameOfCoef GlobalPotential; EntityType GroupsOfNodesOf; { NameOfCoef GlobalPotential; EntityType GroupsOfNodesOf;
NameOfConstraint SetGlobalPotential; } NameOfConstraint SetGlobalPotential; }
{ NameOfCoef ArmatureCharge; EntityType GroupsOfNodesOf; { NameOfCoef ArmatureCharge; EntityType GroupsOfNodesOf;
NameOfConstraint SetArmatureCharge; } NameOfConstraint SetArmatureCharge; }
} }
// Subspace definition only needed to display "vf" in PostProcessing // Subspace definition only needed to display BF_electrode in PostProcessing
SubSpace { SubSpace {
{ Name vf; NameOfBasisFunction sf; } { Name vf; NameOfBasisFunction sf; }
} }
...@@ -186,7 +186,7 @@ Integration { ...@@ -186,7 +186,7 @@ Integration {
Formulation { Formulation {
/* Only minor changes in the formulation. /* Only minor changes in the formulation.
The global quantities are declared in the "Quantity{}" section, The global quantities are declared in the "Quantity{}" section,
and a "GlobalTerm" is added that triggers the creation of an additional equation and a "GlobalTerm" is added that triggers the assembly of an additional equation
per electrode in the system to compute the charge Q_electrode per electrode in the system to compute the charge Q_electrode
Q_electrode = (-epsr[] Grad v, Grad BF_electrode)_Vol_Dielectric_Ele Q_electrode = (-epsr[] Grad v, Grad BF_electrode)_Vol_Dielectric_Ele
...@@ -196,7 +196,7 @@ Formulation { ...@@ -196,7 +196,7 @@ Formulation {
{ Name v; Type Local; NameOfSpace Hgrad_v_Ele; } { Name v; Type Local; NameOfSpace Hgrad_v_Ele; }
{ Name U; Type Global; NameOfSpace Hgrad_v_Ele [GlobalPotential]; } { Name U; Type Global; NameOfSpace Hgrad_v_Ele [GlobalPotential]; }
{ Name Q; Type Global; NameOfSpace Hgrad_v_Ele [ArmatureCharge]; } { Name Q; Type Global; NameOfSpace Hgrad_v_Ele [ArmatureCharge]; }
// next line only needed to display the global BF in PostProcessing // next line only needed to display the BF_electrode in PostProcessing
{ Name vf; Type Local; NameOfSpace Hgrad_v_Ele [vf]; } { Name vf; Type Local; NameOfSpace Hgrad_v_Ele [vf]; }
} }
Equation { Equation {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment