forked from neams-th-coe/cardinal
-
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.
- Loading branch information
1 parent
0bc9c35
commit a42da39
Showing
10 changed files
with
857 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
define n | ||
|
||
|
||
endef | ||
|
||
$(info $nCardinal is compiled with the following MOOSE modules) | ||
|
||
ifeq ($(CHEMICAL_REACTIONS), yes) | ||
$(info CHEMICAL_REACTIONS) | ||
endif | ||
ifeq ($(COMBINED), yes) | ||
$(info COMBINED) | ||
endif | ||
ifeq ($(CONTACT), yes) | ||
$(info CONTACT) | ||
endif | ||
ifeq ($(ELECTROMAGNETICS), yes) | ||
$(info ELECTROMAGNETICS) | ||
endif | ||
ifeq ($(FLUID_PROPERTIES), yes) | ||
$(info FLUID_PROPERTIES) | ||
endif | ||
ifeq ($(FSI), yes) | ||
$(info FSI) | ||
endif | ||
ifeq ($(FUNCTIONAL_EXPANSION_TOOLS), yes) | ||
$(info FUNCTIONAL_EXPANSION_TOOLS) | ||
endif | ||
ifeq ($(GEOMCHEMISTRY), yes) | ||
$(info GEOCHEMISTRY) | ||
endif | ||
ifeq ($(HEAT_TRANSFER), yes) | ||
$(info HEAT_TRANSFER) | ||
endif | ||
ifeq ($(LEVEL_SET), yes) | ||
$(info LEVEL_SET) | ||
endif | ||
ifeq ($(MISC), yes) | ||
$(info MISC) | ||
endif | ||
ifeq ($(NAVIER_STOKES), yes) | ||
$(info NAVIER_STOKES) | ||
endif | ||
ifeq ($(OPTIMIZATION), yes) | ||
$(info OPTIMIZATION) | ||
endif | ||
ifeq ($(PERIDYNAMICS), yes) | ||
$(info PERIDYNAMICS) | ||
endif | ||
ifeq ($(PHASE_FIELD), yes) | ||
$(info PHASE_FIELD) | ||
endif | ||
ifeq ($(POROUS_FLOW), yes) | ||
$(info POROUS_FLOW) | ||
endif | ||
ifeq ($(RAY_TRACING), yes) | ||
$(info RAY_TRACING) | ||
endif | ||
ifeq ($(REACTOR), yes) | ||
$(info REACTOR) | ||
endif | ||
ifeq ($(RDG), yes) | ||
$(info RDG) | ||
endif | ||
ifeq ($(RICHARDS), yes) | ||
$(info RICHARDS) | ||
endif | ||
ifeq ($(SOLID_PROPERTIES), yes) | ||
$(info SOLID_PROPERTIES) | ||
endif | ||
ifeq ($(STOCHASTIC_TOOLS), yes) | ||
$(info STOCHASTIC_TOOLS) | ||
endif | ||
ifeq ($(TENSOR_MECHANICS), yes) | ||
$(info TENSOR_MECHANICS) | ||
endif | ||
ifeq ($(THERMAL_HYDRAULICS), yes) | ||
$(info THERMAL_HYDRAULICS) | ||
endif | ||
ifeq ($(XFEM), yes) | ||
$(info XFEM) | ||
endif | ||
$(info $n) |
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,177 @@ | ||
[Mesh] | ||
[gmg] | ||
type = GeneratedMeshGenerator | ||
dim = 2 | ||
xmin = 0 | ||
xmax = 1 | ||
ymin = 0 | ||
ymax = 1 | ||
nx = 4 #3 | ||
ny = 4 #3 | ||
elem_type = QUAD9 | ||
[] | ||
[] | ||
|
||
[Variables] | ||
active = 'u v w' | ||
|
||
[u] | ||
order = SECOND | ||
family = LAGRANGE | ||
initial_condition = 2.8 | ||
[] | ||
|
||
[v] | ||
order = SECOND | ||
family = LAGRANGE | ||
initial_condition = 5.4 | ||
[] | ||
|
||
[w] | ||
order = FIRST | ||
family = LAGRANGE | ||
[] | ||
[] | ||
|
||
[Functions] | ||
[force_fn] | ||
type = ParsedFunction | ||
expression = '1-x*x+2*t' | ||
[] | ||
|
||
[exact_fn] | ||
type = ParsedFunction | ||
expression = '(1-x*x)*t' | ||
[] | ||
|
||
[left_bc] | ||
type = ParsedFunction | ||
expression = t | ||
[] | ||
[] | ||
|
||
[Kernels] | ||
[time_u] | ||
type = TimeDerivative | ||
variable = u | ||
[] | ||
|
||
[diff_u] | ||
type = Diffusion | ||
variable = u | ||
[] | ||
|
||
[ffn_u] | ||
type = BodyForce | ||
variable = u | ||
function = force_fn | ||
[] | ||
|
||
[time_v] | ||
type = TimeDerivative | ||
variable = v | ||
[] | ||
|
||
[diff_v] | ||
type = Diffusion | ||
variable = v | ||
[] | ||
|
||
[diff_w] | ||
type = Diffusion | ||
variable = w | ||
[] | ||
[] | ||
|
||
[BCs] | ||
[all_u] | ||
type = FunctionDirichletBC | ||
variable = u | ||
boundary = '0 1 2 3' | ||
function = exact_fn | ||
[] | ||
|
||
[left_v] | ||
type = FunctionDirichletBC | ||
variable = v | ||
boundary = '3' | ||
function = left_bc | ||
[] | ||
|
||
[right_v] | ||
type = DirichletBC | ||
variable = v | ||
boundary = '1' | ||
value = 0 | ||
[] | ||
|
||
[left_w] | ||
type = DirichletBC | ||
variable = w | ||
boundary = '3' | ||
value = 0 | ||
[] | ||
|
||
[right_w] | ||
type = DirichletBC | ||
variable = w | ||
boundary = '1' | ||
value = 1 | ||
[] | ||
[] | ||
|
||
[Postprocessors] | ||
[initial_u] | ||
type = ElementIntegralVariablePostprocessor | ||
variable = u | ||
execute_on = initial | ||
[] | ||
|
||
[initial_v] | ||
type = ElementIntegralVariablePostprocessor | ||
variable = v | ||
execute_on = initial | ||
[] | ||
|
||
[AxialOffset_u_x] | ||
type = AxialOffsetPostprocessor | ||
variable = u | ||
axial_direction = x | ||
midpoint = 0.5 | ||
[] | ||
|
||
[AxialOffset_u_y] | ||
type = AxialOffsetPostprocessor | ||
variable = u | ||
axial_direction = y | ||
midpoint = 0.5 | ||
[] | ||
|
||
[AxialOffset_w] | ||
type = AxialOffsetPostprocessor | ||
variable = w | ||
axial_direction = x | ||
midpoint = 0.5 | ||
[] | ||
[] | ||
|
||
[Executioner] | ||
type = Transient | ||
|
||
dt = 0.1 | ||
num_steps = 5 | ||
[] | ||
|
||
[MultiApps] | ||
[cardinal] | ||
type = TransientMultiApp | ||
app_type = CardinalApp | ||
input_files = moose.i | ||
[] | ||
[] | ||
|
||
[Outputs] | ||
file_base = out_AO_pps | ||
exodus = true | ||
csv = true | ||
[] |
Oops, something went wrong.