Skip to content

Commit 3874cc5

Browse files
electrostatic problems with ArcaneFEMFunctions
1 parent 09feed6 commit 3874cc5

File tree

4 files changed

+277
-470
lines changed

4 files changed

+277
-470
lines changed

electrostatics/Fem.axl

Lines changed: 51 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@
99
<variable field-name="phi" name="Phi" data-type="real" item-kind="node" dim="0">
1010
<description>FEM variable phi on nodes for electrostatic potential</description>
1111
</variable>
12-
<variable field-name="phi_dirichlet" name="PhiDirichlet" data-type="bool" item-kind="node" dim="0">
13-
<description>Boolean which is true if Dirichlet node</description>
14-
</variable>
1512
<variable field-name="E" name="E" data-type="real3" item-kind="cell" dim="0">
1613
<description>electric field vector on cells</description>
1714
</variable>
@@ -32,16 +29,6 @@
3229
<simple name="mesh-type" type="string" default="TRIA3" optional="true">
3330
<description>Type of mesh provided to the solver</description>
3431
</simple>
35-
<simple name = "enforce-Dirichlet-method" type = "string" default="Penalty" optional="true">
36-
<description>
37-
Method via which Dirichlet boundary condition is imposed
38-
</description>
39-
</simple>
40-
<simple name = "penalty" type = "real" default="1.e30" optional="true">
41-
<description>
42-
Penalty value for enforcing Dirichlet condition
43-
</description>
44-
</simple>
4532

4633
<!-- - - - - - dirichlet-boundary-condition - - - - -->
4734
<complex name = "dirichlet-boundary-condition"
@@ -62,6 +49,47 @@
6249
Value of the boundary condition
6350
</description>
6451
</simple>
52+
<simple name = "enforce-Dirichlet-method" type = "string" default="Penalty" optional="true">
53+
<description>
54+
Method via which Dirichlet boundary condition is imposed
55+
</description>
56+
</simple>
57+
<simple name = "penalty" type = "real" default="1.e30" optional="true">
58+
<description>
59+
Penalty value for enforcing Dirichlet condition
60+
</description>
61+
</simple>
62+
</complex>
63+
64+
<!-- - - - - - manufactured-solution - - - - -->
65+
<complex name = "manufactured-solution"
66+
type = "ManufacturedSolution"
67+
minOccurs = "0"
68+
maxOccurs = "unbounded"
69+
>
70+
<description>
71+
Dirichlet boundary condition
72+
</description>
73+
<simple name="manufactured-dirichlet" type="bool" default="false" optional="true">
74+
<description>
75+
Function for Dirichlet boundary condition
76+
</description>
77+
</simple>
78+
<simple name = "enforce-Dirichlet-method" type = "string" default="Penalty" optional="true">
79+
<description>
80+
Method via which Dirichlet boundary condition is imposed
81+
</description>
82+
</simple>
83+
<simple name = "penalty" type = "real" default="1.e30" optional="true">
84+
<description>
85+
Penalty value for enforcing Dirichlet condition
86+
</description>
87+
</simple>
88+
<simple name="manufactured-source" type="bool" default="false" optional="true">
89+
<description>
90+
Function for manufactured source term condition
91+
</description>
92+
</simple>
6593
</complex>
6694

6795
<!-- - - - - - neumann-boundary-condition - - - - -->
@@ -115,6 +143,16 @@
115143
Value of the point Dirichlet condition
116144
</description>
117145
</simple>
146+
<simple name = "enforce-Dirichlet-method" type = "string" default="Penalty" optional="true">
147+
<description>
148+
Method via which Dirichlet boundary condition is imposed
149+
</description>
150+
</simple>
151+
<simple name = "penalty" type = "real" default="1.e30" optional="true">
152+
<description>
153+
Penalty value for enforcing Dirichlet condition
154+
</description>
155+
</simple>
118156
</complex>
119157

120158
<service-instance name = "linear-system"

0 commit comments

Comments
 (0)