forked from idaholab/moose
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
These tests ensure that in 2D: - when use_displaced_mesh=false, and when an element is inverted, MOOSE will not throw an error; - when use_displaced_mesh=false, and when an element is distorted to have exactly zero element-Jacobian, MOOSE will not throw an error; - when use_displaced_mesh=true, and when an element is distorted to have exactly zero element-Jacobian, MOOSE correctly will throw an error The tests do NOT test in 2D: - when use_displaced_mesh=true, and when an element is inverted to produce a negative element-Jacobian, MOOSE correctly throws an error. See lengthy discussion at idaholab#10229 Refs idaholab#9740
- Loading branch information
Showing
2 changed files
with
71 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# The 2D mesh is inverted using a prescribed displacement. | ||
# However, due to use_displaced_mesh = false in the Kernel, | ||
# libMesh does not throw a "negative jacobian" error | ||
[Mesh] | ||
type = GeneratedMesh | ||
dim = 2 | ||
displacements = 'disp_x disp_y' | ||
[] | ||
|
||
[AuxVariables] | ||
[./disp_x] | ||
[../] | ||
[./disp_y] | ||
[../] | ||
[] | ||
|
||
[AuxKernels] | ||
[./disp_x] | ||
variable = disp_x | ||
type = FunctionAux | ||
function = '-x*t' | ||
[../] | ||
[] | ||
|
||
[Variables] | ||
[./u] | ||
[../] | ||
[] | ||
|
||
[Kernels] | ||
[./diff] | ||
type = Diffusion | ||
variable = u | ||
use_displaced_mesh = false | ||
[../] | ||
[] | ||
|
||
[Executioner] | ||
type = Transient | ||
dt = 0.8 | ||
end_time = 1.5 | ||
[] |
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