Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Markdown Conversion for the rest of documentation files #400

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
80 commits
Select commit Hold shift + click to select a range
7270f90
Create MgNd_precipitate_single_Bppp.md
danlwill Jan 9, 2025
424e37a
Update and rename MgNd_precipitate_single_Bppp.md to precipitateEvolu…
danlwill Jan 11, 2025
1e093f1
Edit main title for consistency
danlwill Jan 12, 2025
7690076
Update CHAC_anisotropy.md
danlwill Jan 12, 2025
c36aa6e
Update formulation_coupledCHAC.md
danlwill Jan 12, 2025
7c6d2d2
Create allenCahn_conserved.md
danlwill Jan 12, 2025
91f32e0
Update allenCahn_conserved.md
danlwill Jan 12, 2025
5fb2a3d
Delete applications/allenCahn_conserved/tex_files directory
danlwill Jan 12, 2025
e83c480
Delete applications/allenCahn_conserved/allenCahn_conserved.pdf
danlwill Jan 12, 2025
d97532c
Create and prototype md file for alloySolidification
danlwill Jan 12, 2025
5dafd42
Create alloySolidification_uniform.md prototype
danlwill Jan 12, 2025
3252148
Create anisotropyFacet.md prototype
danlwill Jan 12, 2025
a19cf00
Create cahnHilliard.md prototype
danlwill Jan 12, 2025
87a4c84
Create corrosion.md prototype
danlwill Jan 12, 2025
2a66108
Create corrosion_microgalvanic.md prototype
danlwill Jan 12, 2025
8f67dc7
Create formulation_coupledCHAC.md prototype
danlwill Jan 12, 2025
1db2888
Create dendriticSolidification.md prototype
danlwill Jan 12, 2025
075622b
Create eshelbyInclusion.md prototype
danlwill Jan 12, 2025
c6f0767
Create formulation_fickianFlux.md prototype
danlwill Jan 12, 2025
8f17ab6
Create grainGrowth.md prototype
danlwill Jan 12, 2025
17aa43d
Create mechanics.md prototype
danlwill Jan 12, 2025
c5cb8ca
Create KKS_nucleation.md prototype
danlwill Jan 12, 2025
cda0cfd
Create formulation_precipitateEvolution.md prototype
danlwill Jan 12, 2025
15e6cfb
Small fix
danlwill Jan 14, 2025
00e91c8
Finish alloySolidification.md
danlwill Jan 14, 2025
fed946d
Delete applications/alloySolidification/tex_files directory
danlwill Jan 14, 2025
34738e7
Delete applications/alloySolidification/alloySolidification.pdf
danlwill Jan 14, 2025
81ab7c3
Finish alloySolidification_uniform.md
danlwill Jan 14, 2025
01f3bb6
Delete applications/alloySolidification_uniform/tex_files directory
danlwill Jan 14, 2025
3d38b0d
Delete applications/alloySolidification_uniform/alloySolidification_u…
danlwill Jan 14, 2025
a1a6a33
Finish anisotropyFacet.md
danlwill Jan 14, 2025
2e1e897
Delete applications/anisotropyFacet/tex_files directory
danlwill Jan 14, 2025
b41bad9
Delete applications/anisotropyFacet/anisotropyFacet.pdf
danlwill Jan 14, 2025
7e6eadd
Finish cahnHilliard.md
danlwill Jan 14, 2025
fa2a168
Delete applications/cahnHilliard/tex_files directory
danlwill Jan 14, 2025
9bf0b8c
Delete applications/cahnHilliard/formulation_cahnHillard.pdf
danlwill Jan 14, 2025
775b94d
Update corrosion.md
danlwill Jan 14, 2025
b509583
Finish corrosion.md
danlwill Jan 15, 2025
f8cfd42
Delete applications/corrosion/tex_files directory
danlwill Jan 15, 2025
6d6a06e
Delete applications/corrosion/corrosion.pdf
danlwill Jan 15, 2025
d88323e
Finish corrosion_microgalvanic.md
danlwill Jan 17, 2025
b085e92
Delete applications/corrosion_microgalvanic/tex_files directory
danlwill Jan 17, 2025
040a173
Delete applications/corrosion_microgalvanic/corrosion_microgalvanic.pdf
danlwill Jan 17, 2025
01ef59c
Finish formulation_coupledCHAC.md
danlwill Jan 17, 2025
f47fc45
Delete applications/coupledCahnHilliardAllenCahn/tex_files directory
danlwill Jan 17, 2025
38d2b60
Delete applications/coupledCahnHilliardAllenCahn/formulation_coupledC…
danlwill Jan 17, 2025
fba9f8c
Update dendriticSolidification.md
danlwill Jan 17, 2025
d87367a
Update eshelbyInclusion.md
danlwill Jan 17, 2025
cbe3f90
Finish formulation_fickianFlux.md
danlwill Jan 17, 2025
cdfba41
Delete applications/fickianDiffusion/tex_files directory
danlwill Jan 17, 2025
4080792
Delete applications/fickianDiffusion/formulation_fickianFlux.pdf
danlwill Jan 17, 2025
bbcccd8
Finish grainGrowth.md
danlwill Jan 17, 2025
fcf5397
Delete applications/grainGrowth/tex_files directory
danlwill Jan 17, 2025
54154d1
Delete applications/grainGrowth/grainGrowth.pdf
danlwill Jan 17, 2025
2d4e5b9
Add files via upload
danlwill Jan 17, 2025
8578971
Delete applications/grainGrowth_dream3d/grainGrowth.pdf
danlwill Jan 17, 2025
cf22f16
Add files via upload
danlwill Jan 17, 2025
8bbdd30
Delete applications/grainGrowth_dream3d/tex_files directory
danlwill Jan 17, 2025
368e312
Finish mechanics.md
danlwill Jan 17, 2025
fb9dd79
Delete applications/mechanics/tex_files directory
danlwill Jan 17, 2025
29ae298
Delete applications/mechanics/mechanics.pdf
danlwill Jan 17, 2025
2b16aa7
Add files via upload
danlwill Jan 17, 2025
f4a6fb1
Delete applications/spinodalDecomposition/formulation_cahnHillard.pdf
danlwill Jan 17, 2025
20ccc6c
Finish dendriticSolidification.md
danlwill Jan 17, 2025
c561e8c
Delete applications/dendriticSolidification/tex_files directory
danlwill Jan 17, 2025
3fdebc6
Delete applications/dendriticSolidification/dendriticSolidification.pdf
danlwill Jan 17, 2025
91e019b
Finish eshelbyInclusion.md
danlwill Jan 17, 2025
0d0c61d
Delete applications/eshelbyInclusion/tex_files directory
danlwill Jan 17, 2025
d70aa9d
Delete applications/eshelbyInclusion/eshelbyInclusion.pdf
danlwill Jan 17, 2025
eace5b1
Finish KKS_nucleation.md
danlwill Jan 17, 2025
28fa658
Delete applications/nucleationModel/tex_files directory
danlwill Jan 17, 2025
f205e4e
Delete applications/nucleationModel/KKS_nucleation.pdf
danlwill Jan 17, 2025
dc1924b
Add files via upload
danlwill Jan 17, 2025
de832fe
Delete applications/nucleationModel_preferential/tex_files directory
danlwill Jan 17, 2025
caccba5
Delete applications/nucleationModel_preferential/KKS_nucleation.pdf
danlwill Jan 17, 2025
0c1f9e2
Finish formulation_precipitateEvolution.md
danlwill Jan 17, 2025
7a5a5fa
Delete applications/precipitateEvolution/tex_files directory
danlwill Jan 17, 2025
0500188
Delete applications/precipitateEvolution/formulation_precipitateEvolu…
danlwill Jan 17, 2025
f5f2503
Add files via upload
danlwill Jan 17, 2025
affd062
Automatics tests don't need model descriptions
landinjm Jan 22, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion applications/CHAC_anisotropy/CHAC_anisotropy.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## PRISMS-PF: CHAC Anisotropy (with Coupled CH-AC Dynamics)
# PRISMS-PF: CHAC Anisotropy (with Coupled CH-AC Dynamics)
Consider a free energy expression of the form:

$$
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## PRISMS PhaseField: Regularized Anisotropy (with Coupled CH-AC Dynamics)
# PRISMS PhaseField: Regularized Anisotropy (with Coupled CH-AC Dynamics)

Consider a free energy expression of the form:

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## PRISMS PhaseField: Coupled Cahn-Hilliard and Allen-Cahn Dynamics
# PRISMS PhaseField: Coupled Cahn-Hilliard and Allen-Cahn Dynamics

Consider a free energy expression of the form:

Expand Down
183 changes: 183 additions & 0 deletions applications/allenCahn_conserved/allenCahn_conserved.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,183 @@
# PRISMS PhaseField: Globally Conserved Allen-Cahn Dynamics

This application performs a phase field simulation of Allen-Cahn dynamics subject to global (as opposed to local) conservation. Global conservation implies that $\int_\Omega \eta \,dV$, where $\Omega$ is the volume of the system, is constant in time.

Note: This application needs to run with **uniform mesh** in order for the calculation of the chemical potential to be accurate.

Consider a free energy expression of the form:

$$
\begin{equation}
\Pi(\eta, \nabla \eta) = \int_{\Omega} f( \eta ) + \frac{\kappa}{2} \nabla \eta \cdot \nabla \eta ~dV,
\end{equation}
$$

where $\eta$ is the structural order parameter, and $\kappa$ is the gradient length scale parameter.

## Variational treatment

Considering variations on the primal field $\eta$ of the from $\eta+\epsilon w$, we have

$$
\begin{align}
\delta \Pi &= \left. \frac{d}{d\epsilon} \int_{\Omega} f(\eta+\epsilon w) + \frac{\kappa}{2} \nabla (\eta+\epsilon w) \cdot ~\nabla (\eta+\epsilon w) ~dV \right\vert_{\epsilon=0}
\end{align}
$$

$$
\begin{align}
&= \int_{\Omega} w f_{,\eta} + \kappa \nabla w \nabla \eta ~dV
\end{align}
$$

$$
\begin{align}
&= \int_{\Omega} w \left( f_{,\eta} - \kappa \Delta \eta \right) ~dV + \int_{\partial \Omega} w \kappa \nabla \eta \cdot n ~dS,
\end{align}
$$

where $f_{,\eta} = \partial f/\partial \eta$.

Assuming $\kappa \nabla \eta \cdot n = 0$, and using standard variational arguments on the equation $\delta \Pi =0$ we have the expression for chemical potential as

$$
\begin{equation}
\mu = f_{,\eta} - \kappa \Delta \eta.
\end{equation}
$$

## Kinetics
The Parabolic PDE for Allen-Cahn dynamics is given by:

$$
\begin{align}
\frac{\partial \eta}{\partial t} &= -M\mu,
\end{align}
$$

where $M$ is the constant mobility. However, the previous equation does not ensure global conservation of $\eta$. In order to achieve global conservation we can add a spatially-uniform term, $A$, to the RHS that effectively offsets the total change in $\eta$ such that $\int_\Omega \partial \eta / \partial t\,dV =0$:

$$
\begin{align}
\frac{\partial \eta}{\partial t} &= -M\mu+A.
\end{align}
$$

Applying the global conservation constraint to previous equation, we obtain

$$
\begin{align}
\int_\Omega \frac{\partial \eta}{\partial t}\,dV &= -\int_\Omega (M\mu-A) \,dV = 0.
\end{align}
$$

Since $A$ is spatially uniform and $M$ is a constant, $A$ given by

$$
\begin{align}
A &= \frac{M}{V}\int_\Omega \mu \,dV.
\end{align}
$$

Subsituting $A$ from

$$
\begin{align}
A &= \frac{M}{V}\int_\Omega \mu \,dV.
\end{align}
$$

into

$$
\begin{align}
\frac{\partial \eta}{\partial t} &= -M\mu+A.
\end{align}
$$

we get

$$
\begin{align}
\frac{\partial \eta}{\partial t} &= -M(\mu-\bar{\mu}),
\end{align}
$$

where $\bar{\mu} = (1/V)\int_\Omega \mu \,dV$.

## Time discretization
Considering forward Euler explicit time stepping, we have the time discretized kinetics equations:

$$
\begin{align}
\eta^{n+1} &= \eta^{n} - \Delta t M(\mu^n-\bar{\mu}^n)
\end{align}
$$

and

$$
\begin{align}
\mu^{n+1} &= f_{,\eta}^n - \kappa \Delta \eta^n.
\end{align}
$$

## Weak formulation
In the weak formulation, considering an arbitrary variation $w$, the above equation can be expressed as a residual equations:

$$
\begin{align}
\int_{\Omega} w \eta^{n+1} ~dV&= \int_{\Omega} w [ \eta^{n} - \Delta t M(\mu^n-\bar{\mu}^n) ]~dV
\end{align}
$$

$$
\begin{align}
r_{\eta} &= \eta^{n} - \Delta t M(\mu^n-\bar{\mu}^n)
\end{align}
$$

and

$$
\begin{align}
\int_{\Omega} w \mu^{n+1} ~dV&= \int_{\Omega} [w f_{,\eta}^n - w \kappa \Delta \eta^{n}]~dV
\end{align}
$$

$$
\begin{align}
&= \int_{\Omega} w ( f_{,\eta}^{n} ) + \nabla w \cdot (\kappa \nabla \eta^{n}) ~dV,
\end{align}
$$

$$
\begin{align}
r_{\mu x} &= \kappa \nabla \eta^{n}
\end{align}
$$

$$
\begin{align}
r_{\mu} &= f_{,\eta}^{n}
\end{align}
$$

where the reference chemical potential $\bar{\mu}^n$ for time step $n$ in

$$
\begin{align}
\int_{\Omega} w \eta^{n+1} ~dV&= \int_{\Omega} w [ \eta^{n} - \Delta t M(\mu^n-\bar{\mu}^n) ]~dV
\end{align}
$$

is calculated as

$$
\begin{align}
\bar{\mu}^n& = \frac{1}{V}\int_\Omega \mu^n ~dV.
\end{align}
$$

The above values of $r_{\eta}$, $r_{\mu}$, and $r_{\mu x}$ are used to define the residuals in the following parameters file:
`\textit{applications/allenCahn\_conserved/equations.cc`
Binary file not shown.
Loading
Loading