User-defined Plugin: Pure Solidification
|
1.1. Create a copy of this plugin by following the instructions here.
1.2. Replace the content of user_pfm_solidification::run_pfm_calculation with user's source codes.
1.3.To assign model parameter value through PhaseField Database (.pfdb) file, it is optional to edit user_pfm_solidification::load_arguments. For example, a custom parameter can be added in source code:
1.3. To assign the value of this custom parameter, edit "Custom Parameters" Table of pfdb in the following way:
See full features of pfdb file in Syntax and Examples of Phase-Field Database File (.PFDB) of Pandat's manual.
An example of getting thermodynamic/kinetic properties from PanPhaseField SDK is shown in user_pfm_solidification::sdk_update_prop. For example to get Gibbs free energy of solid and liquid phases:
See details about how to use available properties in PanPhaseField SDK's document.
Besides adding a new model, user can choose to customize the solidification model in this plugin template. Edit the following methods in pfm_solidification_model.cpp to customize the model:
See details of these methods by clicking links or view the source code.
Optional source codes are related to Pandat result table writer, Pandat GUI's progress message, and some Performance logs. To disable these source code, simply modify:
See details of the Macro definition by clicking links.