-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12880 from lindsayad/allow-1d-lagrange-vec
Allow LAGRANGE_VEC simulations to be performed in 1D
- Loading branch information
Showing
11 changed files
with
131 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,63 @@ | |||
# This example reproduces the libmesh vector_fe example 1 results | |||
|
|||
[Mesh] | |||
type = GeneratedMesh | |||
dim = 1 | |||
nx = 15 | |||
xmin = -1 | |||
elem_type = EDGE3 | |||
[] | |||
|
|||
[Variables] | |||
[./u] | |||
family = LAGRANGE_VEC | |||
order = SECOND | |||
[../] | |||
[] | |||
|
|||
[Kernels] | |||
[./diff] | |||
type = VectorDiffusion | |||
variable = u | |||
[../] | |||
[./body_force] | |||
type = VectorBodyForce | |||
variable = u | |||
function_x = 'ffx' | |||
[../] | |||
[] | |||
|
|||
[BCs] | |||
[./bnd] | |||
type = LagrangeVecFunctionDirichletBC | |||
variable = u | |||
x_exact_soln = 'x_exact_sln' | |||
boundary = 'left right' | |||
[../] | |||
[] | |||
|
|||
[Functions] | |||
[./x_exact_sln] | |||
type = ParsedFunction | |||
value = 'cos(.5*pi*x)' | |||
[../] | |||
[./ffx] | |||
type = ParsedFunction | |||
value = '.25*pi*pi*cos(.5*pi*x)' | |||
[../] | |||
[] | |||
|
|||
[Preconditioning] | |||
[./pre] | |||
type = SMP | |||
[../] | |||
[] | |||
|
|||
[Executioner] | |||
type = Steady | |||
solve_type = NEWTON | |||
[] | |||
|
|||
[Outputs] | |||
exodus = true | |||
[] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters