Tools

合金凝固模块

合金凝固模块

在曙光超算中,已发布版本位于/work/share/ac21ujhbvo/local/mesospire/,用户可查看目录获取最新版本。

基本参数说明

parameter
NameNoteRequiredType
T温度,单位开尔文
P界面渗透率,对应固液界面不同元素的界面渗透率数组
Vm摩尔体积
mu界面迁移率
sigma界面能
eta界面厚度
phase
NameNoteRequiredType
liquid液相能量及扩散动力学参数设置MultiComponentCustomPhase
solid固相能量及扩散动力学参数设置MultiComponentCustomPhase
boundary_condition
NameNoteRequiredType
BC0X边界条件0XZEROFLUX / PERIODIC
BCNX边界条件NXZEROFLUX / PERIODIC
BC0Y边界条件0YZEROFLUX / PERIODIC
BCNY边界条件NYZEROFLUX / PERIODIC
BC0Z边界条件0ZZEROFLUX / PERIODIC
BCNZ边界条件NZZEROFLUX / PERIODIC
nucleation (类型为数组)
flag
NameNoteRequiredDefault
average驱动力平均化开关false
roation时候转动晶粒false
anisotropy
NameNoteRequiredType
type各向异性函数的种类
parameters界面能各向异性参数数组
mobility界面迁移率各向异性参数数组
output
NameNoteRequiredType
output_time待补充
initial_interval初始输出时间间隔
every_number增大输出时间间隔的输出次数
factor增大输出时间间隔的输出次数时的倍数
variable自定义输出的额外变量数组

配置文件示例

config.yaml
omp_threads: 64
type: AlloySolidification
path: ./results/alsimg
clear: true
mesh:
  nx: 200
  ny: 200
  nz: 1
  dx: 1.0e-07
  dt: 1.0e-08
  current_time: 0
  simulation_time: 0.02
elements: [SI, MG, AL]

parameter:
  T: 750
  P: [1.0e-4, 1.0e-4]
  Vm: 1.0e-05
  mu: 5.0e-11
  sigma: 0.6
  eta: 6.0e-07

phase:
  liquid:
    type: MultiComponentCustomPhase
    name: liquid
    element: [SI, MG]
    gibbs_energy:
      type: AlMgSiFCCGibbsEnergy
    diffusion_potential:
      type: AlMgSiFCCDiffusionPotential
    diffusivity:
      type: ConstantMatrixMultiComponentFunctor
      values: [4.27112e-09, 7.83419e-11, 2.75805e-09, 8.92056e-10]

  solid:
    type: MultiComponentCustomPhase
    name: liquid
    element: [SI, MG]
    gibbs_energy:
      type: AlMgSiFCCGibbsEnergy
    diffusion_potential:
      type: AlMgSiFCCDiffusionPotential
    diffusivity:
      type: ConstantMatrixMultiComponentFunctor
      values: [9.40721e-14, 8.38687e-16, 1.96669e-13, 1.87486e-15]

boundary_condition:
  BC0X:
    type: PERIODIC
  BCNX:
    type: PERIODIC
  BC0Y:
    type: PERIODIC
  BCNY:
    type: PERIODIC

nucleation:
- type: SetWhole
  variable:
  - varname: phi
    value: [1, 0]
  - varname: c_liquid
    value: [0.087, 0.0053, 0.087, 0.0053]
  - varname: c_solid
    value: [0.087, 0.0053, 0.087, 0.0053]

- type: SetSphere
  point: [100, 100, 0]
  radius: 3
  smooth: true
  smooth_variable: phi
  width: 6
  variable:
  - varname: phi
    value: [0, 1]
  - varname: c_liquid
    value: [0.087, 0.0053, 0.087, 0.0053]
  - varname: c_solid
    value: [0.087, 0.0053, 0.087, 0.0053]

flag:
  average: true
  rotation: false

anisotropy:
  type: CubicAnisotropyYang
  parameters: [0.3]
  mobility: [0.3]

output:
  output_time: 0
  initial_interval: 1.0e-07
  every_number: 10
  factor: 2
  variable: [dG_liquid_solid]
config.json
{
    "omp_threads": 64,
    "type": "AlloySolidification",
    "path": "./results/config_alsimg_multiconponent",
    "clear": true,
    "mesh": {
        "nx": 200,
        "ny": 200,
        "nz": 1,
        "dx": 1e-07,
        "dt": 1e-08,
        "current_time": 0,
        "simulation_time": 2e-2
    },
    "elements": ["SI", "MG", "AL"],
    "parameter":{
        "T": 750,
        "P": [1.0e-4, 1.0e-4],
        "Vm": 1.0e-5,
        "mu": 5.0e-11,
        "sigma": 0.6,
        "eta": 6.0e-7
    },
    "phase":{
        "liquid":{
            "type": "MultiComponentCustomPhase",
            "name": "liquid",
            "element": ["SI", "MG"],
            "gibbs_energy": {"type": "AlMgSiFCCGibbsEnergy"},
            "diffusion_potential": {"type": "AlMgSiFCCDiffusionPotential"},
            "diffusivity": {"type": "ConstantMatrixMultiComponentFunctor", "values": [4.27112e-09,7.83419e-11,2.75805e-09,8.92056e-10]}
        },
        "solid":{
            "type": "MultiComponentCustomPhase",
            "name": "liquid",
            "element": ["SI", "MG"],
            "gibbs_energy": {"type": "AlMgSiFCCGibbsEnergy"},
            "diffusion_potential": {"type": "AlMgSiFCCDiffusionPotential"},
            "diffusivity": {"type": "ConstantMatrixMultiComponentFunctor", "values": [9.40721e-14,8.38687e-16,1.96669e-13,1.87486e-15]}
        }
    },
    "boundary_condition":{
        "BC0X": {"type": "PERIODIC"},
        "BCNX": {"type": "PERIODIC"},
        "BC0Y": {"type": "PERIODIC"},
        "BCNY": {"type": "PERIODIC"}
    },
    "nucleation":[
        {
            "type": "SetWhole",
            "variable": [
                {"varname": "phi", "value": [1.0, 0.0]},
                {"varname": "c_liquid", "value": [0.087, 0.0053, 0.087, 0.0053]},
                {"varname": "c_solid", "value": [0.087, 0.0053, 0.087, 0.0053]}
            ]
        },
        {
            "type": "SetSphere",
            "point": [100, 100, 0],
            "radius": 3,
            "smooth": true,
            "smooth_variable": "phi",
            "width": 6,
            "variable": [
                {"varname": "phi", "value": [0.0, 1.0]},
                {"varname": "c_liquid", "value": [0.087, 0.0053, 0.087, 0.0053]},
                {"varname": "c_solid", "value": [0.087, 0.0053, 0.087, 0.0053]}
            ]
        }
    ],
    "flag":{
        "average": true,
        "rotation": false
    },
    "anisotropy": {
        "type": "CubicAnisotropyYang",
        "parameters": [0.3],
        "mobility": [0.3]
    },
    "output":{
        "output_time": 0,
        "initial_interval": 1.0e-7,
        "every_number": 10,
        "factor": 2,
        "variable": []
    }
}

::