User-defined Plugin: Spinodal Decomposition
|
1.1. Create a copy of this plugin by following the instructions here.
1.2. Replace the content of user_pfm_spinodal::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_spinodal::load_arguments. For example, a custom parameter for the matrix phase can be added in source code:
1.4. To assign the value of this custom parameter, edit "Custom Parameters" Table of pfdb in the following way:
1.5. Optionally, the user can also control interpolation step-size of PanDataNet through *.pfdb file as shown below:
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_spinodal::sdk_update_prop. For example to get chemical potential:
See details about how to use available properties in PanPhaseField SDK's document.
Besides adding a new model, user can choose to customize the spinodal model in this plugin template. Edit the following methods in pfm_spinodal_model.cpp to customize the model:
See details of these methods by clicking their link 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.