forked from idaholab/stork
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlaplacian.i
39 lines (34 loc) · 968 Bytes
/
laplacian.i
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
[Mesh]
type = GeneratedMesh # Can generate simple lines, rectangles and rectangular prisms
dim = 2 # Dimension of the mesh
nx =10
ny = 10 # Number of elements in the x direction
[]
[Variables]
[./u]
#Adds a Linear Lagrange variable by default
[../]
[]
[Kernels]
[./Examplelaplacian]
type = Examplelaplacian # A Laplacian operator
variable = u # Operate on the "pressure" variable from above
[../]
[]
[BCs]
[./all]
type = NeumannBC # Simple u=value BC
variable = u
boundary = 'left right top bottom' # Name of a sideset in the mesh
value = 0.2 # (Pa) From Figure 2 from paper. First data point for 1mm balls.
[../]
[]
[Executioner]
type = Steady # Steady state problem
solve_type = PJFNK #Preconditioned Jacobian Free Newton Krylov
petsc_options_iname = '-pc_type -pc_hypre_type' #Matches with the values below
petsc_options_value = 'hypre boomeramg'
[]
[Outputs]
exodus = true # Output Exodus format
[]