Custom Phase Field Actions
To simplify the formation of input files that use standard Allen-Cahn and Cahn-Hilliard equations, custom actions have been created that automatically create conserved and nonconserved phase field field variables and all the corresponding kernels. Additional kernels can still be added using standard MOOSE syntax.
The actions are in the phase field block, under the modules block. Nonconserved variables are created using NonconservedAction. For an example, see
[Modules<<<{"href": "../../syntax/Modules/index.html"}>>>]
[./PhaseField<<<{"href": "../../syntax/Modules/PhaseField/index.html"}>>>]
[./Nonconserved<<<{"href": "../../syntax/Modules/PhaseField/Nonconserved/index.html"}>>>]
[./eta]
free_energy<<<{"description": "Base name of the free energy function F defined in a free energy material"}>>> = F
kappa<<<{"description": "The kappa used with the kernel"}>>> = 2.0
mobility<<<{"description": "The mobility used with the kernel"}>>> = 1.0
variable_mobility<<<{"description": "The mobility is a function of any MOOSE variable (if this is set to false, L must be constant over the entire domain!)"}>>> = false
[../]
[../]
[../]
[]
(moose/modules/phase_field/test/tests/actions/Nonconserved_1var.i)Conserved variables are created using ConservedAction. For an example, See
[Modules<<<{"href": "../../syntax/Modules/index.html"}>>>]
[./PhaseField<<<{"href": "../../syntax/Modules/PhaseField/index.html"}>>>]
[./Conserved<<<{"href": "../../syntax/Modules/PhaseField/Conserved/index.html"}>>>]
[./cv]
solve_type<<<{"description": "Split or direct solve?"}>>> = REVERSE_SPLIT
free_energy<<<{"description": "Base name of the free energy function F defined in a free energy material"}>>> = F
kappa<<<{"description": "The kappa used with the kernel"}>>> = 2.0
mobility<<<{"description": "The mobility used with the kernel"}>>> = 1.0
[../]
[../]
[../]
[]
(moose/modules/phase_field/test/tests/actions/conserved_split_1var.i)and
[Modules<<<{"href": "../../syntax/Modules/index.html"}>>>]
[./PhaseField<<<{"href": "../../syntax/Modules/PhaseField/index.html"}>>>]
[./Conserved<<<{"href": "../../syntax/Modules/PhaseField/Conserved/index.html"}>>>]
[./cv]
solve_type<<<{"description": "Split or direct solve?"}>>> = direct
free_energy<<<{"description": "Base name of the free energy function F defined in a free energy material"}>>> = F
kappa<<<{"description": "The kappa used with the kernel"}>>> = 2.0
mobility<<<{"description": "The mobility used with the kernel"}>>> = 1.0
[../]
[../]
[../]
[]
(moose/modules/phase_field/test/tests/actions/conserved_direct_1var.i)See also
Phase Field FAQ - Frequently asked questions for MOOSE phase-field models.