Contents lists available atScienceDirect
Journal
of
Computational
Physics
www.elsevier.com/locate/jcp
Three
dimensional
thermal-solute
phase
field
simulation
of binary
alloy
solidification
P.C. Bollada
a,∗
,
C.E. Goodyer
a,b,
P.K. Jimack
a,
A.M. Mullis
a,
F.W. Yang
a aUniversity of Leeds, United KingdombNumerical Algorithms Group, United Kingdom
a
r
t
i
c
l
e
i
n
f
o
a
b
s
t
r
a
c
t
Article history:
Received8September2014
Receivedinrevisedform20January2015 Accepted28January2015
Availableonline3February2015
Keywords:
Phasefield Dendrite Solidification Adaptivemesh Multigrid NonlinearPDEs
Weemployadaptivemeshrefinement,implicittimestepping,anonlinearmultigridsolver and parallel computation to solve a multi-scale, time dependent, three dimensional, nonlinearsetofcoupledpartial differentialequationsforthreescalarfieldvariables.The mathematicalmodel represents thenon-isothermalsolidification ofametal alloyintoa meltsubstantiallycooledbelow itsfreezingpoint atthe microscale.Underlyingphysical molecular forces are captured at this scale by a specification ofthe energy field. The time rate of change of the temperature, alloy concentration and an order parameter to govern the state of the material (liquid or solid) are controlled by the diffusion parametersand variationalderivativesofthe energyfunctional.The physical problemis importanttomaterialscientists forthe developmentofsolidmetal alloys and,hitherto, thisfully coupledthermalproblem hasnotbeen simulated inthreedimensions,dueto its computationally demanding nature. By bringing together stateof the art numerical techniquesthisproblemisnowshownheretobetractableatappropriateresolutionwith relativelymoderatecomputationalresources.
©2015TheAuthors.PublishedbyElsevierInc.ThisisanopenaccessarticleundertheCC BYlicense(http://creativecommons.org/licenses/by/4.0/).
1. Introduction
We herepresentourcomputationalapproachtosimulating,atthemeso-scale,threedimensional,non-isothermalalloy solidification froman initial small, sphericalseed into a mature, dendriticcrystal. A feature of amature dendrite is the geometriccomplexityofitsevolvingtwo-dimensionalsurface(seeFig. 1foratypicalsnapshotintime).Thismakestracking of thesurface a difficult taskinsharpinterface models. Aphase-fieldmodel avoidsthisby making useof aphase field,
φ (
x,
t)
∈ [−
1,
1]
, torepresent, atits two extremes,the liquidandsolid state respectivelyandthe evolutionof thephase boundary,φ
=
0,isthesurfaceofinterest.Thissolvesoneproblem,butatacostofintroducinganother.Thecomputation requiresan extravariable,thephase,whichvariesrapidlyoverasmallregionabouttheinterface.Takingthethicknessof theinterfacetobe≈
1,wefindthesizeofamaturedendritegrowsto∼
300,requiringthedomainsizetobesignificantly greaterstill(dependingonthethermalfieldthismayneedtobe O(
1000)
,orevenmore),weseethattheinterfaceregion ofinterestisverymuchsmallerthantheoveralldomain.Ofmajorconcerninphasefieldmodelsisthedependenceofthe computed resultson the interface width. Toaddress this, Karma [1],analysed the probleminthe thininterface limit to produceaphasefieldformulationthatisindependentoftheinterfacewidthuptoseveralordersofmagnitudelargerthan*
Correspondingauthor.E-mail address:[email protected](P.C. Bollada).
http://dx.doi.org/10.1016/j.jcp.2015.01.040
Fig. 1.Snapshot of the solid-liquid interface for a typical dendrite. This image was obtained from a simulation withLe=40,=0.525 andx=0.78.
aphysicallyrealvalue,althoughthisislessclearwhen athermalfieldiscoupled.Thatsaid, weadoptaninterface width thatisofphysicallyrealisticorder.
Therearetwocoupleddrivingforcesforgrowth:thealloyconcentration,governedbyadiffusionparameterDc and,
sec-ondly,atemperaturefieldgovernedbyadiffusionparameterDθ.TheratioofthesetwoparametersgivestheLewisnumber,
Le
=
Dθ/
Dc,whichformanymetallicalloysapproaches10000.IntwodimensionsLewisnumbersofthismagnitudehavebeenrealisedby[2].However,thereare nopriorresults,evenfortheinterfacewidthspermittedbyKarma’smodel,foreven verymoderateLewisnumberinthreedimensions.Thispaperseekstodemonstratethatsuchresultsarefeasibleprovided theappropriatenumericaltechniquesareemployed.
Thenumericalsolutiontothisphasefieldmodel(describedindetailinthefollowingsection)requiresmethodstosolve a time-dependent, highly nonlinear system ofPDEs, of parabolictype, and capable ofresolving varying length and time scales.Afeaturethat addsanotherlevelofdifficultytothisproblemisthatweareparticularlyinterestedinthetipradius and speed of growthof the dendrite only when it is fullymature, and thesetwo numbers are steady. We selectthese parametersbecauseexperimentalevidence[3]showsthat,whenscaled bytheradiusofcurvatureatthetip,alldendrites areself-similar.Consequently,fundamentalstudiesofdendriticgrowth,whetheranalytical(seee.g.[4,5])orcomputational, havefocused oncalculating thegrowthvelocity andradiusofcurvature atthetip asafunction ofundercoolingandthe thermo-physicalpropertiesofthemelt,theseparametersbeingsufficienttouniquelydescribethegrowth.
Insummary,thecomputationalproblemis:non-linear,three-dimensional,stiff,involvesmultiplelengthscalestocapture smallphase andlarge temperature fields,multi-time scaleassociated withthe Lewis numberand, to establisha mature dendrite,requiresalongsimulationtime.
The computational techniques we employ are: use of very fine meshing in the region around the moving boundary wherephasefield andsolutefieldresolutioniscritical,andcoarsemeshingawayfromtheboundarywhereonlytheslowly changingtemperaturefieldrequiresresolution;implicittimesteppingtoallowmuchlargertimestepsthanwouldotherwise bepossible;nonlinearsmoothinginconjunctionwithanonlinearmulti-gridsolver;andparallelprocessingwithupto1024 coresasthe simulationprogresses.The combinationofall these techniquesallows analmost optimalsolutionprocess to bedeveloped,inwhichthenumberofdegreesoffreedomisevolvedwiththedendrite,tomaintaintherequiredresolution astheinterface grows,andthesolutiontime ateachtime stepisapproximatelyproportionaltothenumberofdegreesof freedom.Furthermore,theuseofaparallelimplementationensuresthatsufficientprimarymemoryisavailabletosupport ameshresolutionwhichisfullyconvergedwhilstmaintainingatractablesolutiontime.
Thevariationalformofthemathematicalmodelis,ofcourse,identicaltothetwo-dimensionalmodelinform.However, onrealisingthevariationalderivativestheresultingequationsaremorecomplexandnonlinearinthehigherdimension.This is largelybecauseofsurface energyrelatedanisotropy associatedtoalignment atthemolecular scale.Intwo dimensions anisotropy isconvenientlyformulated usinga singleangleparameter, butinthreedimensionsweprefer tousea normal givenintermsofCartesiangradients.
In addition to the Lewis number, another key parameter in the simulations is the undercooling,
, which sets the temperature oftheliquid’s initialand farboundarycondition below itsfreezing point.As thisparameterbecomes larger theunder-coolingbecomesmoresevere,thesolidificationmorerapidandfractalinappearance:and,also,correspondingly moredifficulttosimulate.
Theotherfield,nothithertodiscussed,isthesolutefield.Forabinaryalloyofinitialconcentration,c∞,theconcentration of an alloy component atany point is represented by a value ofc
(
x,
t)
∈ [
0,
1]
. The requirement for equilibriumat the solid-liquidinterface meansthattheconcentrationinthesolidandtheconcentrationintheliquidattheinterfacewillbe unequal. Inasharpinterface modelthisresultsinadiscontinuousjumpinc attheinterface,whileinphasefield models it results ina steep, but continuous, increase inc across the diffuseinterface region, wherethere is some advantage in reformulatingtheproblemtoremovethis.Weshowthisinthenextsection.2. Governingequations
The governingequationsfordendritic growthofan under-cooledbinary alloy are herepresentedinfull, inboththeir variational formandin the(equivalent) formofPDEs fornumerical implementation.See[8]for afull description ofthe model we employ, derived in turn from[7], which provides analysis of the anti-trapping term, which was extended to isothermaldilutebinaryalloysin[1].TheoriginoftheanisotropyonthelefthandsideofEq.(2a),forexample,isdiscussed in[8]andisvitaltothisformulationineliminatinginterface kineticeffects.Thenon-dimensionalequationsforthephase field,
φ
,thesoluteconcentration,c andthedimensionlesstemperature,θ
,aregivenviaaspecificationofthefreeenergy.F
≡
V
1 2A
(n)
2
∇
φ
· ∇
φ
+
f(θ, φ)
dV (1)andtherelations
τ
(
c, φ)
A2(n)
φ
˙
= −
δ
Fδφ
,
(2a)˙
c
= ∇ ·
K
(φ)
∇
δ
Fδ
c−
j,
(2b)˙
θ
=
Dθ∇
2θ
+
12φ.
˙
(2c)Thesolutediffusionparameterisgivenby
K
=
Dc12(
1−
φ).
(3)The parameter Dc is a diffusion constant, thus K
=
0 in the solid (φ
=
1) and K=
Dc inthe liquid (φ
= −
1). Thus, ingeneral,
φ
∈ [−
1,
1]
.Dθ isthetemperaturediffusioncoefficient(assumedconstant).Thenormaltotheinterfaceisgivenbyn
=
∇
φ
|∇
φ
|
,
(4)whichiswelldefinedaround
φ
=
0,andtheanisotropyfunctionforcubicsymmetry(growthispreferredalongthenormals tothefaces)isgivenforthreedimensionsby[7],A
(n)
≡
A01
+ ˜
n4x
+
n4y+
n4z(5)
where n
= [
nx,
ny,
nz]
, A0=
1−
3,
˜
=
4/(
1−
3)
and≈
0.
02 governs theamountof anisotropy.Thereasonforthis arrangementofconstantsistocomparewiththetwodimensionalformA
(n)
≡
A01
+ ˜
n4x
+
n4y≡
1+
cos 4
ψ
(6)wheretheangle,
ψ
,isgivenbytan
ψ
=
∂φ
∂
y/
∂φ
∂
x.
(7)Thedimensionlessrelaxationtimefunctionisdefinedby
τ
(
c, φ)
≡
1Table 1
Tableofparametervaluesusedforthesimulationsinthispaper.
Physical property Symbol Value
Anisotropy 0.02
Boundary concentration Mc∞ 0.05
Equilibrium partition coefficient κE 0.3
Dimensionless interface width λ 2
Ratio of solute diffusivity to characteristic diffusivity Dc 1.2534
Lewis number –Dθ/Dc Le 40 and 100
Dimensionless undercooling at the far boundary 0.25 to 0.80
Initial nuclear radius R0 5.0
Computational property Symbol Value
Finest grid size x 0.195 to 0.78
Computation domain size L3 800×800×800
wheretheLewisnumberLe
=
Dθ/
Dc andU
≡
1 1−
kE2c
/
c∞1
+
kE−
(
1−
kE)φ
−
1
.
(9)HerekE istheequilibriumpartitioncoefficient,c∞ isthefarboundarycondition forc
∈ [
0,
1]
.Theanti-trappingcurrentj,appearinginthesoluteequation,Eq.(2b),isprescribedby
j
= −
12
√
2[1+
(
1−
kE)
]Uφn.
˙
(10) Theprofileofc exhibitsaspikeattheinterface, whichcanpresentcomputationaldifficulties.Following[8],thisislargely overcomebyrewritingthesoluteequationusingthevariableU:1
+
kE2
−
1−
kE2
φ
∂
U∂
t= ∇ ·
Dc 1−
φ
2
∇
U+
j+
12[1
+
(
1−
kE)
U]∂φ
∂
t.
(11)Thephysicaltemperaturefield,T,canberecoveredbytherelationship
θ
=
T−
TM−
mc∞L
/
Cp,
(12)whereL andCp arethelatentheatofthephasetransitionandheatcapacityrespectively.Theslopeoftheliquiduslineis
givenbym
=
M L/
[
Cp(
1−
κ
E)
]
andTM isthemeltingtemperatureofthealloy.Finallythebulkfreeenergydensityisgivenby
f
(θ, φ,
U)
≡
φ
2
2
φ
22
−
1+
λ(θ
+
c∞U)
φ
−
2φ
3
3
+
φ
55
.
(13)WesolvethesystemofEqs.(2a),(2c)and(11)plusinitial,typicallysmall,solidseed(seeEq.(40)andSection3.2)andfar boundaryconditions
φ
|
far= −
1U
|
far=
0(
≡
c|
far=
c∞)
θ
|
far= −
(14)
where
isthegivenunder-cooling.Theequationfortemperatureisastandarddiffusionequation1 withaheatingterm,
φ
˙
, proportionaltothesolidificationrate(orcoolingifmelting).Thedrivingforceforthephaseequationsisgivenby f(θ,
φ,
U)
, consistingofadoublewellpotentialhavingstableminimaatφ
= ±
1 andamaximumatφ
=
0 andafunctionofθ
tocreate conditionsformovingthephaseboundary.Forexampleanegativevalueofθ
createsconditionsfavourableforsolidification. Theparameter,λ
,isproportionaltotheinterfacewidth,whichinturnischosenasthecharacteristiclengthscale.2.1. Parametervalues
Forthepurposesofthispaperwechooseaselectionofparameterstouseasdefaultvaluesforthesimulationsbelowin Table 1.Anydeviationfromtheseparametervaluesisexplicitlynotedinthetext.
[image:4.561.95.446.79.197.2]2.2. Anisotropiccalculations
Notethatthephaseequation,Eq.(2a),ismadeconsiderablymorecomplicatedbythepresenceoftheanisotropyterm,
A
(
n)
, inthefree energyfunctional.Thevariationalderivative ofa functionalnot involvinggradientsis simplythepartial derivativeofthedensitywithrespecttothatvariable.Thusδ
δφ
f
(
T, φ)
dV=
∂
f∂φ
=
φ
3−
φ
+
λ(θ
+
c∞U)(
1−
2φ
2+
φ
4).
(15)Thevariationalderivativeofthepuregradientpartofthefunctionalisgivenby
δ
Gδφ
≡
δ
δφ
g
(
∇
φ)
dV= −∇ ·
∂
∂
rg(r)
r=∇φ
(16)
where,inourmodel,
g
(r)
≡
12A(n)
2|
r|
2,
forr∈
R
3 (17)InordertoexpandEq.(16)andthus,Eq.(2a),wefirstintroducethenotation:
φ
,i≡
∂
iφ
≡
∂φ
∂
xi etc.,forCartesiandifferenti-ation,andsubscriptsfordifferentiationonfunctionspace.Thus
gi
≡
∂
g∂
ri,
gi j
≡
∂
∂
ri∂
g∂
rj.
(18)Thisenablesustowrite
−
δ
Gδφ
=
∂
igi=
φ
,i jgi j (using the chain rule),
whichwrittenoutinfullreads
−
δ
Gδφ
≡ −
δ
δφ
g
(
∇
φ)
dx3=
∂
2φ
∂
xi∂
xj∂
∂
ri∂
g∂
rj r=∇φ.
Notethat, gi j,isafunctionofonlyfirstderivativesof
φ
.Toavoidexpandingtheaboveintermsofthecomponents,φ
,i wefirstintroducethesubstitutionsq
≡ |∇
φ
|
2 andX≡ [
X1,X2,X3]
≡ [
φ
2,1/
q,
φ
2,2/
q,
φ
,23/
q]
,towritetheanisotropyA
=
A01
+ ˜
3
i=1 Xi2
.
(19)Foranarbitraryfunctionh
(
r)
= ˜
h(
r,
q,
X,
A)
weusethechainruletowrite∂
h∂
ri=
∂
∂
ri+
∂
q∂
ri∂
∂
q+
∂
Xj∂
ri∂
∂
Xj+
∂
A∂
ri∂
∂
A˜
h=
∂
∂
ri+
2ri
∂
∂
q+
2ri
q
(δ
i j−
Xj)
∂
∂
Xj+
2ri
q [2A0
˜
Xi−
2(
A−
A0)
]∂
∂
A˜
h
,
(20)wherewehaveused
∂
q∂
ri=
2ri
,
∂
Xj∂
ri≡
∂
∂
rir2j
q
=
2riδ
i jq
−
2rir2jq2
=
2riq
(δ
i j−
Xj),
∂
A∂
ri=
∂
Xj∂
ri∂
A∂
Xj=
2ri
q
(δ
i j−
Xj)
∂
A∂
Xj=
2riq
(δ
i j−
Xj)
2A0˜
Xj=
4riusing,onthelastsimplification,theidentity A
−
A0≡
A0˜
jX2j.Thisallowsustocomputegi
≡
∂
∂
ri1 2A
2q
|
r=∇φ
=
φ
,iA2+
4φ
,i(
A0Xi˜
−
A+
A0)
A (22)andfurtherdifferentiationgivestheconciseforms
gii
=
(
24Xi−
3)
A2+
(
−
48Xi2˜
+
12Xi˜
−
40Xi+
4)
A0A+
16Xi(
Xi˜
+
1)
2A20gi j
=
φ
,iφ
,jg
24A2
+
(
−
24Xi˜
−
24Xj˜
−
40)
A0A+
(
16(
Xj˜
+
1))(
Xi˜
+
1)
A20,
i=
j.
(23)Theaboveexpressionsarenotonlymuchmoreconcisethantheexpandedequivalentasafunctionof
φ
,i,butarefunctionsofXiandAwhichareoforderunityinsizeandthusminimisefloatingpointerrors(theexpandedequivalentcontainstenth
orderpolynomialsof
φ
,i).Wenotealsothat,intheabsenceofanisotropy,˜
=
0,reduces gi j toδ
i j sothatφ
,i jgi j= ∇
2φ
.Inthesituationwheregi j isilldefineddueto
|∇
φ
|
→
0 weset.φ
,i jgi j|
|∇φ|→0=
A20(
1+ ˜
)
2∇
2φ
(24)or,equivalently A
|
|∇φ|→0=
A0(1+ ˜
)
.Inpracticeweusethisexpressiononlywhen|∇
φ
|
=
0,tomachineprecisionwithout difficulty.Usingthenotationtr
(
g)
≡
δ
i jgi j,therearrangementφ
,i jgi j≡
13(φ
,11+
φ
,22+
φ
,33)(
g11+
g22+
g33)
+
(φ
,i j−
13φ
,kkδ
i j)
gi j≡
13
∇
2φ
tr(g)
+
(φ
,i j−
13φ
,kkδ
i j)
gi j,
(25)allows the dominant term to be isolated andhas advantage, because the Laplacian can be discretisedto minimise grid induced anisotropy.We willalsoseethat theterm
(φ
,i j−
13φ
,kkδ
i j)
,like gi j,ondiscretisation witha compactstencilatadiscretenode,p,onlyhascontributionsfromthenodessurroundingp.Thisaffordssimplificationforthenon-linearsolver laterdiscussed.
2.3. Systemsummary
Writing,Mi j
≡
φ
,i j−
13φ
,kkδ
i j wesummarisethenonlinearPDEsystemthatformsourmathematicalmodelasτ
(
c, φ)
A(n)
2φ
˙
=
31∇
2φ
tr(g)
+
Mi jgi j−
∂
f∂φ
(26)where
τ
(
c,
φ)
isgivenbyEq.(8),∂
f∂φ
isgiveninEq.(15),gi j inEq.(23),thesoluteissolvedviaEq.(11),1
+
kE2
−
1−
kE2
φ
∂
U∂
t= ∇ ·
Dc 1−
φ
2
∇
U+
j+
12[1
+
(
1−
kE)
U]∂φ
∂
t,
(27)andthetemperaturebyEq.(2c),
˙
θ
=
Dθ∇
2θ
+
12φ.
˙
(28)3. Discretisation
The approach taken to discretisation is based upon a cell centred finite difference scheme, in that the nodes of the domain are located atthe centre ofcubic cells, and thus,we usethe term‘node’ and ‘cellcentre’ interchangeably. One consequenceofthisisthat thereare nonodesonthedomain boundary,thusmaking theuseofDirichletboundary con-ditions non-trivial. The scheme makes use of the PARAMESH library to support mesh adaptivity in parallel [11,12]. The meshesobtainedbythisapproachtaketheformofanocttreeofregularblocks,withinwhichthemeshisuniform,andit isthespatial discretisationon anyoneoftheseblocksthatwe discusshere.Subsequentlywe willdiscussadaptivemesh refinementandtheimplicittemporaldiscretisationschemethatisemployed.
3.1. Spatialdiscretisation
Compactfinitedifferencestencils
(
3×
3×
3)
,areusedtodiscretisethefirstandsecondderivatives.Denotingthese27 pointsbyQanddefiningageneric27pointLaplacianstencil,Wabc,aroundapointp= [
i,
j,
k]
by∇
2u|
Q
=
1
(
x)
2 1a=−1 1
b=−1 1
c=−1
where
xisthephysicaldistancebetweennearestneighbours,wecanrecoverthe7pointLaplacianstencil,builtfromonly thecentrenode,pandthe6nearestneighbours(a2
+
b2+
c2=
1)∇
2u|
Q
=
−
6ui,j,k
+
ui+1,j,k+
ui−1,j,k+
ui,j+1,k+
ui,j−1,k+
ui,j,k+1+
ui,j,k−1(
x)
2 (30)bysettingtheweights
Wabc
=
−
6 a2+
b2+
c2=
0 1 a2+
b2+
c2=
1 0 otherwise.
(31)However,thisstencilismorepronetogridanisotropythanthefollowing27pointLaplacianstencil(see[13]),withweights
Wabc
=
⎧
⎪
⎨
⎪
⎩
−
128/
30 a2+
b2+
c2=
0 14/
30 a2+
b2+
c2=
1 3/
30 a2+
b2+
c2=
2 1/
30 a2+
b2+
c2=
3(32)
Inordertodiscretisethephaseequation,Eq.(26),inspaceitisnecessarytoapproximate
φ
,i jgi j aboutthepointp.Usingtheabovenotationweobtain:
(φ
,i jgi j)
|
Q=
13∇
2φ
|
Qtr(g)
|
(Q−p)+
Mi j|
(Q−p)gi j|
(Q−p),
(33)whereweusethenotation,
|
Q−p,todenotethatthecentralnodeisnotused.ThediscretisationofMi j andgi j aredetailedinAppendix A. Consequently,Eq.(33)hasthepropertythatonly
∇
2φ
|
Qcontainsacontributionfromthecentral node,
φ
pandthus
∂
∂φ
p(φ
,i jgi j)
|
Q=
13tr(g)
|
Q−p∂
∂φ
p∇
2
φ
|
Q
= −
128
90 tr
(g)
|
Q−p.
(34) ThisisimportantfortheJacobilinearisationdescribedinthenextsection.ThePDEforφ
isthusapproximatedbyODEsat eachpoint,p,by˙
φ
p=
Fpφ(φ
Q,
Up, θ
p)
(35)where
Fφp
≡
1
3
∇
2φ
|
Qtr(g)
|
Q−p+
Mi j|
Q−pgi j|
Q−p−
∂
f∂φ
(φ
p,
Up, θ
p)
τ
(
cp, φ
p)
A2|
Q−p.
(36)Intheabove
τ
(
cp,
φ
p)
isgivenbyEq.(8)and∂
f∂φ
|
pisgivenbyEq.(15)usingthevaluesforφ,
U,
θ
atpointp.TheLaplacian∇
2φ
|
QisgivenbyEq.(29)withweightsEq.(32).TheindexedfunctionsMi j aregivenbyEq.(A.1)andthefunctionsgi j are
givenbyEq.(23),where A
,
Xi,
|∇
φ
|
2 areall functionsofφ
,i approximatedbysecondorderdifferences, Eq.(A.2).ThePDEforU,Eq.(11),isapproximatedbytheODEs
˙
Up
=
FpU(
φ
˙
p, φ
p,
UQ, θ
p)
(37)where
FpU
≡
∇ ·
Dc1−2φp
∇
U|
Q+
j+
12
[
1+
(
1−
kE)
Up] ˙
φ
p1+kE
2
−
1−kE
2
φ
p (38)whichisexpandedinfull(showninSection3.3)withthesamederivativediscretisationschemeusedforU as
φ
. Finallytheθ
termisgivenby˙
θ
p=
Fpθ(θ
Q,
φ
˙
p)
≡
Dθ∇
2θ
|
Q+
12φ
˙
p.
(39)3.2. Boundaryandinitialconditions
WeusezeroNeumannboundaryconditionsforallvariables.Thisiseasilyimplementedbyimposingvaluestothecentre ofghostcellsofallblocksadjacenttotheNeummanboundary,thatareequaltothecentreofthecellvaluesofthosecells next totheboundary(seebelowformorediscussionofghostcells).Inthediscretisation,thissetsallboundaryderivatives equal to zero.In exploitation of the symmetry in the problem this is interpreted as reflective symmetry on the planes
forall variables.If, during a simulation,the normal derivative ofany ofthe dependent variables begins todeviate from zero by more than a prescribed tolerance then we mayallow the domain to expand so as to ensure we retain a zero normalderivative onthe revisedboundary(see belowformoredetails ofthemesh adaptivitythat facilitates this).Fora fixed domain,it is importantthat the dimensionsare sufficient not onlyto representthe growing dendritebut alsothe temperaturefieldthroughoutthesimulation,whichtypicallyextendswellaheadofthephaseinterface(especiallyforlarge valuesoftheLewisnumber).
The physical initial conditions for this problemare not fully understood. One of the sources of theoretical difficulty in modellingthese materials is modellingthe process ofnucleation by which crystallites formvia fluctuations [14]. We adopttheapproachofusingassmallan initialseedaspossibletherebyallowingtheinitialphaseprofile,temperatureand concentrationfieldtoadjustintheveryearlystagesofthesimulation.Thetemperaturefieldcantakelongertoadjusttoa profilewhichisnearthemeltingpointofthealloyinsidethesolidifstartedataconstantfieldvalueand,soweanticipate thiswiththeconditiongivenbelow(seeEq.(41)).
Theinitialconditionforthephasefieldwithseedradiusgivenby Risprescribedby
φ (
t=
0,x(p))
= −
tanh[
α
(
√
x·
x−
R)
]
,
(40)whereweemploy thefactor
α
=
0.
6,theprecisevalueofwhichisnot importantasthesolversmoothsthephaseprofile ifα
islargeandconverselysharpentheprofileifα
istoosmallwithinreason.Itisnotfoundnecessarytonormalisethis profilesothatφ (
t=
0,
x=
0)
=
1.TheinitialsoluteconditionisU=
0 andthetemperatureprofileusedisθ (
t=
0,x(p))
= −
+
12(φ
+
1).
(41)The mostsignificant parameterin theinitial conditions,in termsof thesensitivityof thesubsequent calculations, isthe radiusoftheinitialnucleus.Ithasbeenshownthatthetransientbehaviouroftheevolvingdendritecanbeaffectedbythis value wellintothesimulation [15](thoughthefinal geometryandvelocity ofthedendritetipismuch lesssensitive). To thisendwechoosethesmallestvalueof R suchthatthedendritedoesnot melt(meltingcanoccur ifthereisinsufficient solid
φ
=
1 in thenucleusduethe encroachmentof thediffuseinterface near thenucleuscentre). We findthe smallest valuetobeR≈
5.3.3. Temporaldiscretisation
DuetothestiffnessofthenonlinearsystemofODEsthatarisesfollowingthespatialdiscretisation weemploythesecond orderBackwardDifferentiationFormula(BDF2[16])timestepping,sothatatapoint,pinthegriddomainatthecentrethe 33 points,Q,thephasefieldvariablesystemisapproximatedby
φ
pn+1−
r2φ
np+
r3φ
pn−1=
r1tn+1Fφp (42)
Inpractice,weintroduceanothervariable
φ
p∗≡
r2φ
pn−
r3φ
pn−1 (43)andwriteEq.(42)as
φ
np+1−
φ
p∗=
r1tn+1Fpφ
(φ
nQ+1,
U n+1p
, θ
pn+1).
(44)Therighthandside, Fφp,isdefinedbyEq.(36).
Forconstant timestep,r1
=
2/
3, r2=
4/
3,r3=
1/
3.Foragrowing dendriteit isessential tousea smalltimestep at theinitial(imposed)state.Thereafterthetimestepisincreased(seeSection4.2fordetail)tofullyexploittheimplicittime stepping.TheBDF2foradaptivetimesteppingisgivenbyr1
≡
(
r+
1)/(
2r+
1),
r2≡
(
r+
1)
2/(
2r+
1),
r3≡
r2/(
2r+
1)
r
≡
tn+1
/
tn (45)whereristheratioofthecurrenttoprevioustimestep.Theheatequationisdiscretisedsimilarly.With
θ
p∗≡
r2θpn−
r3θpn−1 wewriteθ
pn+1−
θ
p∗=
r1tn+1Fpθ
(φ
np+1, φ
p∗, θ
Qn+1, θ
p∗)
(46)where
Fpθ
(φ
p, φ
p∗, θ
Q, θ
p∗)
≡
Dθ∇
2θ
|
Q+
12φ
p−
φ
∗pr1
tn+1
(47)
3.4. Adaptivemeshandblocktreestructure
The domainis firstdividedinto anumberof meshblockseach ofwhichcontains N
×
N×
N hexahedralcells, where we typically choose N=
8. We employ a domain of L3=
8003, which is large enough forLewis numbers of the order of 100. We divide thisdomain into 43 blocks,so that when N=
8, each cell isof size 253 andrefer to thisaslevel 1. The adaptive mesh strategy then imposes a hierarchicalsub-division ofsome or all these blocks,andtheir descendants, based uponan oct treestructure.Thissubdivisionaims toconcentrate cellswhere gradientsofthe octtreevariables are highest andto ensure neighbourblocks differ by at mostone level.The finestgrid we work withis at level 7, witha correspondingx
=
25/
27=
0.
1953125.Wefindthattheminimumfinestlevelnecessarytoobtainqualitativelyreasonable resultsislevel 5,corresponding tox
=
0.
78125.Asnotedpreviously,throughoutthisworkwe exploitcell-centredfinite differencesinourdiscretisation,inwhicha singleunknownisassociatedwiththecentreofeachhexahedral cellforeach ofthedependentvariables.Inorderto discussfurtherthetreestructure ofthe blockswedenoteanyblockby itslabel, i andits contents/proper-ties, Bi:
B
(
i)
= [
l,
s,
p,c,
x]
(48)wherel
∈ [
1,
n]
isthelevel,s∈ [
1,
8]
isthesiblingnumber(i.e.anindexforwhichchildof ptheblockis),p istheparent index, ci,
i∈ [
1,
8]
arethe 8 child indices,andx= [
x,
y,
z]
is the Cartesian positioncoordinates of theblock origin. Anyoneofthesepropertiescanbeaccessedbytheblocknumber,i.Someexamples: p
(
i)
istheblocknumberoftheparentof block i;x(
p(
i))
isthepositionofthe parent’sorigin;cs(i)(
p(
i))
=
i isan identity. Anaturalpositionschemeforthechildblocksis
x
(
c1(
i))
=
x(i)
+
12x
[−
1,
−
1,
−
1]
x
(
c2(
i))
=
x(i)
+
12x
[
1,
−
1,
−
1]
x
(
c3(
i))
=
x(i)
+
12x
[−
1,
1,
−
1]
x
(
c4(
i))
=
x(i)
+
12x
[
1,
1,
−
1]
x
(
c5(
i))
=
x(i)
+
12x
[−
1,
−
1,
1]
x
(
c6(
i))
=
x(i)
+
12x
[
1,
−
1,
1]
x
(
c7(
i))
=
x(i)
+
12x
[−
1,
1,
1]
x
(
c8(
i))
=
x(i)
+
12x
[
1,
1,
1]
,
(49)where
xisthegridsizeassociatedwithleveli.Acompletespecificationofalltheblocksintheocttreeisthenspecified bythelist:
B
= {
B(
i),
i∈ [
1,
BN]}
(50)where BN isthetotalblock number.Moreover, achildlessblock, i,canbeindicatedby specifying,c
(
i)
=
0 andsotheocttreealsocanbespecifiedbyalistingofjusttheleafblocks
B
= {
B(
i),
i∈ [
1,
BN] :
c(i)
=
0}
.
(51)There is noadaptive meshingwithin each block, which always contains N
×
N×
N cells andthe adaptivestrategy is furtherrestrictedbyonlyallowingblocksatlevelnadjacenttoblocksofn−
1,
nandn+
1.Thus,eventhoughablockmay be flaggedforcoarsening,this(latter)restrictionoftenpreventsthishappening. Conversely,blocksflagged forrefinement must,ifnecessary,beaccompaniedbyrefinementonneighbouringblocks.Blocksareflaggedforrefinementif,foranypoint, p,intheblock,thefollowingcriterionissatisfied:e
≡
maxeφ|
φ
p−
φ
p−q|
,
eU|
Up−
Up−q|
,
eT|
Tp−
Tp−q|
>
η
,
(52)whereweuse,fortolerance,
η
∼
1 and|
φ
p−
φ
p−q| ≡
(φ
p−
φ
p−[1,0,0])
2+
(φ
p−
φ
p−[0,1,0])
2+
(φ
p−
φ
p−[0,0,1])
2,
(53)etc.Typicallytheweights,eφ
,
eU andeT arechosentosumtounity.SometimesitisconvenienttoseteU tozerotosuppressunnecessaryrefinementwithinthesolid.Ife
<
0.
1η
,theblockisflaggedforderefinement.neighbouring blocksviatheguardcellnodes.Whentheneighbouringblockiscoarsertheguardcellofthecoarseblockis foundbyaweightedaverageofthe8 surroundingcoarsenodes(someofwhichareintheparentblock).Usingatri-linear functionofx
,
yandz,givestheweightings,inorderofnearestneighboursfirstw
=
27 64
,
9 64
,
9 64
,
9 64
,
3 64
,
3 64
,
3 64
,
1 64
.
(54)Theprocessisknownasprolongation.Forexample,thevalueof
φ
atafinenodeisprolongedbyφ
fine=
i=coarse cube centres
wi
φ
i.
(55)The reverse process, of finding a guardcell value fora coarse block when one or more neighbours isrefined is known asrestrictionandis thesimple averageofthe eightnearest, one levelfiner,cell centres.Both operations, restriction and prolongationusingEq.(54),arealsorequiredformultigridasdetailedinthenextsection.
4. Solvermethod
The discretisation above produces a system of nonlinear algebraic equations for
φ
pn+1,
Upn+1 andθ
pn+1 at each timestep,tn+1.In thissection we describe the solutionalgorithm that is used to solve thesesystems,based upon a nonlin-ear multigrid(FullApproximationScheme(FAS) [17]) approach.Initially we describe thenonlinear smootheruponwhich themultigridisbuilt,beforeexploringhowthemultigridsolvercombinesthiswiththehierarchicalmeshadaptivity intro-ducedintheprevioussection.Finally,inSection4.3,weexplainthekeyfeaturesoftheparallelimplementation,including theissuesassociatedwithparalleldynamicload-balancing.
4.1. Nonlinearsmoother
Thenon-linearsystemofalgebraicequationsattheendofSection 3.3canbewrittenusingthegenericvectornotation vn+1
p
≡ [
φ
np+1,
θ
pn+1,
Upn+1]
byAp
(v
nQ+1)
=
0 (56)where
Ap
(v
nQ+1)
≡
v∗p−
vpn+1+
r1tn+1Fp
(v
nQ+1)
(57)for each node, p, in the grid. Recall, that the appearance of Q indicates coupling between points p and neighbouring nodes,andtheBDF2notation v∗p incombinationwithr1 are definedinSection 3.3.Using aniterationmethod,withvnp+1
approximatedbyvnp+1,m,wedefinethedefect
dnp+1,m
= −
Ap(v
nQ+1,m).
(58)ThepointwiseNewtonupdateforthisiterationisgivenby
vpn+1,m+1
=
vpn+1,m−
ω
d˜
np+1,m,
(59)whered
˜
pn+1,m isfoundbysolvingthe3×
3 systemJpn+1,md
˜
pn+1,m≡
dnp+1,m (60)withthe3
×
3 JacobianmatrixdefinedbyJnp+1,m
≡
∂d
n+1,m p∂
vnp+1,m.
(61)Inpracticewetypically select,
ω
≈
0.
9 andfindthatoffdiagonaltermsofJnp+1,m arenotessential toobtainaconvergentiteration.
ThepreciseformoftheentriesofJnp+1,m maybe deducedfromtheabove.However,we illustratethisindetailforone
ofthediagonaltermsforthesakeofclarity.DenotingthediagonalentriesofJnp+1,m by
[
Jpφ,n+1,m,
Jθ,pn+1,m,
JpU,n+1,m]
,usingEqs.(44)and(36),andtreatingtermsnotincluding
φ
pasconstantwefindJφ,pn+1,m
≡
∂
dφ p
(v
nQ+1,m)
∂φ
p=
1
+
r1tn+1 13
g11
+
g22+
g33τ
(
c, φ)
A2128 30
(
x)
2p
FASalgorithmtosolve A(v)=0
1.h=finestgrid(toplevel) 2.vnp+(h1),0←vn
p(h):setinitialguessequaltovalueatlasttimestep
3.vnp+(h1),ν+1←V-cycle(vnp(+h1),ν,0,h):applicationofV-cycle,ν=0,1,. . .untilconvergence
RecursiveFunctionV-cycle(v0
p(h),fp(h),h)→vmp(+h)1(solvesA(v)=f)
1.vmp(+h)1←S(vm
p(h),fp(h),h)≡
⎧ ⎪ ⎨ ⎪ ⎩ dm
p(h)←fp(h)−A(vmQ(h))
vmp(+h)1←v
m
p(h)−ω
dφ,m p(h)
Jφ,mp(h), dθ,mp(h)
Jp(h)θ,m, dU,mp(h)
JU,mp(h)
, m =0,. . . ,M−1
(pre)smooth
M
times (typicallyweuseM
∼4) 2.dmp(+h)1←fp(h)−Ap(vmQ(+h1))v0 p(2h)←I
h
2h(v m+1 p(h))
d0 p(2h)←I
h
2h(d m+1 p(h))+A(v
0
p(2h)):restriction 3.ifnotcoarsestlevel
vmp(+21h)←V-cycle(v0p(2h),d0p(2h),2h).
else(bottomlevel)
vmp(+21h)←S(vm
p(2h),d
0
p(2h),2h), m =0,. . . ,N(typicallyweuse
N
∼4)endif
4.d0 p(2h)←v
m+1 p(2h)−v
0
p(2h):computethecorrection(nowonupwardpartofv-cycle) 5.v0
p(h)←v
m+1 p(h)+I
2h h(d
0
p(2h)):prolongandcorrectfinegridsolution 6.vmp(+h)1←S(vm
[image:11.561.112.433.53.293.2]p(h),0,h), m =0,. . . ,Mpost−1:(post)smoothwiththisnewvalue
M
post∼4 timesFig. 2.The FAS algorithm.
wherewenotethatthecontributionfromthecentralnodeto
∇
2φ
is∂
∇
2φ
|
Q∂φ
p= −
128
30
(
x)
2.
(63) Thenewupdatedsolutionforφ
attimetn+1atiterationmandpointpisgivenbyφ
pn+1,m+1=
φ
ni+1,m−
ω
d φ,n+1,m pJφ,pn+1,m
.
(64)Theterm Jθ,pn+1,m
=
1+
r1tn+1Dθ30128(x)2 and,thoughtheterm J U,n+1,mp hasmanycomponents,thelinearityofFpU inUp
leadstostraightforwardupdatesfortheU components,notingthatgradientsinvolvingU
|
Q−paretreatedasconstant.The above describes a pointwisenon-linear Jacobismoother. The Jacobiapproach lendsitself to parallel implementa-tion since the computation ateach point maybe completed using neighbouringvalues fromthe previous iteration only. Consequently,onlyoneghostcellupdateisrequiredpriortoeachsweepthroughthemesh.Thiskeepsinter-processor com-municationtoaminimum.Usingthestencilsdescribedaboveitispossibletocompletetheupdatesusingjustonelayerof ghostcells.Henceifablocksizeof8
×
8×
8 (say)isusedinPARAMESHthena10×
10×
10 blockisactuallyallocatedto accommodatetheghostlayerofeachblockedge.Havingderived thepoint-wiseJacobismoother,inthefollowingsubsectionweshow how,thismaybe usedaspartof a non-lineargeometricmultigridsolvercombinedwithlocalmeshadaptivity.Discussionoftheparallel implementationis postponeduntilSection4.3.
4.2. Nonlinearmultigrid
AlthoughtheJacobismootherdescribedabovegivesaconvergentiterationforthesystemEq.(56)(forsufficientlysmall
t andgood initialguess),the convergenceisfar tooslowto beofanypractical use.Fortunately, however,theiteration alsosatisfiesasmoothingpropertywhichmeansthatitdampsout thehighestfrequencycomponentsoftheerror(defect) far more quickly than the rest, see the early chapters of [18] for discussion and analysis of this. This makes it ideally suited for use as part of a nonlinear multigrid scheme. In this work we make use of the Full Approximation Scheme (FAS) ofBrandt[17].We denotethevalueofvariablesatpoint,p,timetn+1,iteration,m,andlevel/grid size,hbyvn+1,m p(h)
and coarser level vp(n+21h,)m. The restriction operation, Ih
2h
(
vp(h))
,is the assignment to vp(2h) ofthe simple average ofthe 8surrounding nodes,vp(h).Prolongation, Ih2hvp(2h),is an assignment tovp(h) givenby applyingEq. (54)to give aweighted
average ofthevaluesatthe 8nearest coarsenodes vp(2h).Insolving Eq.(56),FAScomputesa defectfromtherestricted
Fig. 3.Anillustration,for
Le
=40,=0.525 oftheevolutionofthetimestep,t,from10−6byV-cyclecontrol.(Forinterpretationofthereferencestocolourinthisfigurelegend,thereaderisreferredtothewebversionofthisarticle.)
geometricmultigridsolverbydevelopinganimplementationoftheMultiLevelAdaptiveTechnique(MLAT)(see[17]).MLAT allowsustousetheJacobismootheroneachblockwithoutmodification,providedtheprolongationandrestrictionoperators areadaptedtodealwithguardcellsoftheinterfacebetweentoodifferinglevelsofrefinement.Briefly,thesmootherisonly appliedintheregionsofthedomainthatcontain finelevelblocks,butthecoarsegridcorrectiontakesplaceonallpartsof thedomainthatcontain thecoarselevelblocks(thoughthemodified righthandsideassociatedwiththeFASschemeonly contributestothosecoarsegridregionsthathavefinegridsonthem).
Fortheresultspresentedinthefollowingsectionsweareprimarilyinterestedinobtainingsolutionsatlargetimes.Hence we chooseatime-steppingstrategy withthisinmind,basedupon thenumberofnonlinearV-cyclesthat arerequiredto achieveconvergence(foranalternativestrategy,whichusesalocalerrorestimatetocontrol
t,see[19]).Theprincipleis simple:ifthenonlinearmultigridconvergeseasily atagivetimestepthenincrease
t,whereasifitconvergesslowly(or failstoconverge)thendecrease
t (repeatingthetimestepinthecaseoffailure).Convergenceisdeemedtohaveoccurred whentheinfinitynormofthedefect(possiblyweighteddifferentlyforeachdependentvariable),d,satisfiesd
<
dmax,fora user-defined stoppingparameterdmax.IfthisisnotsatisfiedinVfail V-cyclesthent ishalvedandthestepisretaken. If convergenceoccursinVminV-cyclesorlessthen
tisincreasedby10% howeverifconvergenceoccursinmorethan Vmax V-cyclesthen
tishalvedforthenextstep.Fig. 3showsatypicalevolutionofthetimestepsizeforthreedifferentchoices ofVmin,baseduponinitial
t
=
10−6,dmax=
10−10andVmax=
10.Notethatalthoughtheoscillationintisaesthetically undesirableithasnoadverseeffectonthesolutionqualitynor(solongasVmax
<
Vfail)theoverallefficiency.4.3. Parallelimplementation
Our implementationrequires communication between blocks both on the same level (toapply the smoothingsteps) andbetweenlevels(forprolongationandrestriction).Forparallelprocessing,clearly,communicationbetweencoresneeds tobe kepttoa minimum,butan importantsecondaryconsiderationis thateach corehasasnearaspossible equalload. Forauniformmeshan allocationofeachcoreto anequalvolumeofthecomputationaldomainresultsinanobviousfair division oflabour.Onthe other hand,foranadaptive mesh,such anapproach failssincethe loadingbetweencoreswill differenormously.
Giventhelabel,i,ofeachblockinEq.(48),wepresenttheMortonordering, M
(
i)
∈ [
1,
BN]
,ofanadaptivemeshM
(
i)
=
⎧
⎪
⎨
⎪
⎩
1 l
=
1,
s=
1 (bottom level)M
(
p(
i))
+
1,
s=
1,
l>
1 (one plus parent’s label) M(
s(
i−
1))
+
1,
s>
2,
andl=
leaf levelM
(
c8(
i))
+
1,
otherwise, i.e.s=
2,
(65)where‘leaflevel’refersanunrefinedlevel(parentwithoutchild)andincludesthefinestlevel.Theblocksmaythenbeput intoaMortonorderedlist:
M(B)
≡ {
Bi:
j=
M(
i),
j∈ [
1,
BN]}
≡ {
...,
BM(i),
BM(j), . . .
:
M(
i) <
M(
j)
}
(66)LoadbalancingforBN blocksonprocessors pi,i
=
1,
2,
. . . ,
cN followsthesameorderwithapproximatelyBN/
cN blocksper core. The resulting ordering is well known to exhibit parallel inefficiency for non-uniform meshes. This is because Morton ordering on adaptive meshes leavesthe majority of the top level blocks on a small fractionof cores and since multigrid advances fromthe top tobottom leveland back sequentially,the majorityofthe cores willbe idleat thetop level.Inthreedimensionsthisproblemisacutebecausethereisafactorof8betweenlevels.
Weadoptthefollowingordering,whichmaybetermedMorton-Levelordering. L(B)
≡ {
Bi:
j=
L(
i),
j∈ [
1,
BN]}
,
≡ {
Lk(B),
k∈ [
1,
n]}
,
(67)wherethesubsets,Lk
(
B)
oneachlevel,karedefinedLk
(B)
≡ {
...,
BM(i),
BM(j), . . .
:
M(
i) <
M(
j),
l(
i)
=
l(
j)
=
k}
(68)Insummary,weimplementadepthfirsttraversaloftheblocksandthen,usingthisnumbering,dividetheworkloadat each levelinturnbetweenall processors.Forauniformmeshthisstrategy resultsina nearoptimum allocationtocores. Foradaptivemeshesthecommunicationonanylevelisalsooptimum,butcommunicationbetweenleveliscompromised.
5. Computationalresults
Thissectionprovidesaselectionofcomputationalresultsthataredesignedtovalidateandassessourproposedsolution algorithm. Since thisis the first attempt to produce three dimensional results for the solidification of a non-isothermal alloy using a realistic interface width we have no external simulations against which to validate our code. Hence the approach taken here has been to firstly validate a two-dimensional restriction of our implementation against our own two-dimensionalsolver,implementedcompletelyindependentlyanddescribedin[19].Thesetestsshowthatweareindeed abletoreproduceresultsfrom[2](e.g.thetipradiusandvelocitiesareinexcellent agreement)eventhoughthetwocode basesarecompletelyindependent,e.g.in[2]fourthorderaccuratestencilswereused.
Furthermore, we have also successfullyvalidated two 3-d simplifications of ourimplementation. In [20] we consider a thermal-onlyrestriction (i.e. a pure metal, so no concentration equation present), where we show quantitative agree-mentwithresultsobtainedusingthe3-d,explicit,thermal-onlyapproachof[21,22].Similarly,in[23]weshowquantitative agreementbetweenanisothermalversion ofoursolver(i.e.notemperatureequationpresent)andanother3-disothermal solidification codedescribedin[21].Tovalidate the3-dnon-isothermalsimulations wenowrelyonhavingmesh conver-genceandmultigridperformance.
Theremainder ofthissectionisdividedintotwosubsections.Thefirstoftheseconsidersthemeshconvergenceofour implementation,showingthatlargetimesolutionsobtainedonasequenceoffinerlevelsofmaximumrefinementdoindeed appearto convergetoparticulardendritegeometries,astestedforaselection ofparametervalues.Thesecond subsection considersthenumericalperformanceofthesolver.Inparticularitisshownthatoptimalperformanceisachieved,whereby thetimerequiredtocompleteatimestepgrowsalmostlinearlywiththetotalnumberofdegreesoffreedom.Thecapability improvementsassociatedwiththedistributedmemoryparallelimplementationarealsodiscussed.
5.1. Meshconvergence
Inordertogainfurtherconfidenceinourcomputationalapproachwehaveundertakenanumberofmeshconvergence tests,inwhichweconsideredcomputationalsimulationsinwhichthemaximumlevelofmeshrefinementissystematically increased.InordertoappreciatetheneedforveryfinegridsatthephaseinterfaceFig. 4illustratesacrosssectionalongthe x-axis of atypicalsolution.Thiscorresponds tothesameparametervaluesasusedtocomputethedendriteillustrated in Fig. 1.Itisclearthatthephasevariable,
φ
,changes+
1 (bulksolid)to−
1 (bulkmelt)overaverysmalldistance,similarly thesoluteconcentrationvariesrapidlybothat,andimmediatelyaheadof,theinterface.Thetemperaturevariable,θ
,decays muchmoresmoothlyhowever–thoughalargedomainisrequiredtoensurethattheboundaryeffectdoesnotcontaminate thesolution.Inadditiontotheinterfacewidthafurtherfeatureofsignificant interestisthegeometryofthedendritetip. Fig. 5showsthecomputedevolutionofthetipradiusforthreedifferentundercoolings(0.
325,
0.
525 and0.
725)atLe=
40. The parameter, d0=
5√
2
/(
8λ)
is the (non-dimensional) capillarylength asa function of the interface width. Ourvalue forλ
=
2 gives,d0=
0.
44 indicatingthat theinterface widthinour simulationisofthe orderofthe physicalwidth. We use asourcharacteristictime scale,t0=
0.
80(
d˜
20λ
3)/
D˜
c whered˜
0 andD˜
c are thephysicallydimensionedcapillarylengthandsolute diffusivitycoefficientrespectively.Notethat theresultsforFig. 5 werecomputedusingafinemeshspacingof
x
=
0.
39.Itis an importantquestion toask ifthisissufficiently fineforthe solutionto beinsensitive tofurther mesh refinement.Fig. 6 shows the computed tip radius as a function of time for three different maximum refinement levels (
x
=
0
.
78,
0.
39 and 0.
195) for case Le=
40 and=
0.
325. The tip radius involves estimating a second derivative ofφ
in theregionwhereφ
=
0.Thisisundertakenbyestimatingtheradiusonthex-axisatφ
=
0 usingthephasefield:r
=
φ
,xφ
,uuφ(x,y,z)=0,y=0,z=0
Fig. 4.Thisplotshowsthevariables:phaseφ,soluteconcentration
c
,anddimensionlesstemperatureθ.AtLewisnumberof40andundercoolingof0.525 thetemperaturediffusionzoneextendstoabout300inadomainsizeof8003.(Forinterpretationofthereferencestocolourinthisfigurelegend,thereaderisreferredtothewebversionofthisarticle.)
Fig. 5.Tipradiusat
dx
=0.39 andLe
=40 forarangeofundercooling.Eventhoughtheradiusat=0.325 takeslongertoreachsteadystate,this simulationisfasterthantheothersduetogreaterstabilityresultinginfewer,largertimesteps.(Forinterpretationofthereferencestocolourinthisfigure legend,thereaderisreferredtothewebversionofthisarticle.)where
∂
∂
u=
1
√
2∂
∂
y+
∂
∂
z,