Skip to content

Commit 5814552

Browse files
committed
Added example DiluteAlCu
1 parent 6417623 commit 5814552

File tree

2 files changed

+115
-0
lines changed

2 files changed

+115
-0
lines changed

examples/DiluteAlCu/2d.input

+110
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
// Units are:
2+
// length: um = 10^-6 m
3+
// energy: pJ = 10^-12 J
4+
//
5+
model_type = "KWCcomplex"
6+
7+
end_time = 1.e-2 // required
8+
max_timesteps = 5000 // optional, default is INT_MAX (alias: max_cycles)
9+
10+
Verbosity { // optional, block
11+
level = 1 // optional, default=1
12+
}
13+
14+
Visit {
15+
interval = 1.e-4
16+
interval_type = "time"
17+
}
18+
19+
TimerManager {
20+
timer_list = "solv::*::*","xfer::*::*","AMPE::*::*"
21+
print_threshold = 0.0
22+
}
23+
24+
ModelParameters { // required block
25+
26+
epsilon_anisotropy = 0.03 //delta
27+
28+
H_parameter = 0. // we need quaternions to define anisotropy
29+
30+
epsilon_phi = 0.2 // [(pJ/um)^1/2]
31+
32+
phi_mobility_type = "kim"
33+
//phi_mobility = 1.e3
34+
35+
orient_mobility = 1.
36+
epsilon_orient = 1.e3 // to avoid negative diffusion for q
37+
38+
// free energy parameters:
39+
// f(phi) = scale_energy_well*g(phi)
40+
// where g is a double well potential
41+
phi_well_scale = 0.3 // [pJ/um^3]
42+
phi_well_func_type = "double"
43+
44+
Temperature{
45+
temperature = 915.
46+
}
47+
48+
ConcentrationModel {
49+
model = "dilute"
50+
//antitrapping = TRUE
51+
rhs_form = "ebs"
52+
molar_volume = 1.095e-5
53+
54+
liquidus_slope = -640 // K
55+
meltingT = 933. // K
56+
keq = 0.14
57+
58+
diffusion_type = "temperature_dependent"
59+
D_solid = 3.e-1 //um**2/s
60+
D_liquid = 3.e3 //um**2/s
61+
Q0_solid = 0. // [J/mol]
62+
Q0_liquid = 0. // [J/mol]
63+
}
64+
65+
phi_interp_func_type ="pbg"
66+
conc_interp_func_type = "l"
67+
diffusion_interp_func_type = "l"
68+
69+
BoundaryConditions {
70+
Phase{
71+
boundary_0 = "slope", "0"
72+
boundary_1 = "slope", "0"
73+
boundary_2 = "slope", "0"
74+
boundary_3 = "slope", "0"
75+
}
76+
Conc{
77+
boundary_0 = "slope", "0"
78+
boundary_1 = "slope", "0"
79+
boundary_2 = "slope", "0"
80+
boundary_3 = "slope", "0"
81+
}
82+
Quat{
83+
boundary_0 = "slope", "0"
84+
boundary_1 = "slope", "0"
85+
boundary_2 = "slope", "0"
86+
boundary_3 = "slope", "0"
87+
}
88+
}
89+
}
90+
91+
InitialConditions {
92+
filename = "512x512.nc" // required
93+
init_q = 1., 0.
94+
}
95+
96+
ScalarDiagnostics {
97+
interval = 1.e-4
98+
interval_type = "time"
99+
}
100+
101+
Integrator {
102+
atol = 1.e-5
103+
}
104+
105+
Geometry{
106+
periodic_dimension = 0, 0
107+
coarsest_level_resolution = 512, 512 // required
108+
x_lo = 0., 0. // lower end of computational domain.
109+
x_up = 32.0, 32.0 // upper end of computational domain.
110+
}

examples/DiluteAlCu/README

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
python ~/GIT/AMPE/utils/make_nuclei.py -x 512 -y 512 -z 1 -r 15 \
2+
--ngrains 1 --concentration-in 0.003 --concentration-out 0.02 \
3+
512x512.nc
4+
5+

0 commit comments

Comments
 (0)