SPIDER: model overview
Here you can find a detailed overview of the SPIDER formulation.
Note
This model overview is taken from the notes and contains an extended description of the equations and derivations related to the SPIDER code. It is still work in progress.
Finite element method representation of toy model
Analytical form
Following 1, the weak form of the toy model. Energy conservation is:
Flux is:
where \(\nabla S_{\rm liq}\) is the gradient of the melting curve (liquidus). The eddy diffusivity for 1-D geometry is:
Objective: determine \(S\) (or \(\nabla S\)) for prescribed non-zero \(F\).
Weak form
Multiply energy equation by test function \(v\) and integrate over domain \(\Omega\):
For nonlinear Poisson equation form with \(q(u) = -\kappa_h\):
where Neumann boundary condition is:
Standard form \(a(u,v)=L(v)\):
Variable substitution approach
The convective and mixing fluxes often nearly cancel. Define adjusted variable:
where \(C\) is chosen to shift entropy closer to liquidus. By construction:
Then:
This eliminates the obvious cancellation. Additionally:
However, this approach requires \(\frac{d S_{liq}}{dr} = \frac{d S_{sol}}{dr}\) in the full model, which may be overly restrictive.
Well-balanced scheme approach
A well-balanced scheme defines an equilibrium state that is exactly recovered to machine precision. Define and solve for equilibrium entropy profile that gives constant heat flux from surface boundary condition:
Decompose entropy into equilibrium plus perturbation:
By construction, when \(\delta S=0\):
The evolution equation for the toy model 1:
becomes:
where flux perturbation is:
By construction, \(-\partial F(S_{eqm})/\partial r = 0\), simplifying to:
Key features of well-balanced approach
- Equilibrium state: Entropy profile giving constant flux is exactly recovered to machine precision when perturbations vanish
- Flexibility: Can remesh equilibrium state periodically as surface flux decays with time
- Nonlinearity retained: RHS preserves full nonlinear flux form; equilibrium only ensures gradient is zero
- Recovery: Total entropy \(S\) and flux \(F\) trivially recovered by addition
Comparison: variable substitution vs well-balanced
Variable substitution: - Simpler conceptually but requires \(dS_{liq}/dr = dS_{sol}/dr\) (restrictive) - Implicitly includes mixing flux always
Well-balanced scheme: - More complex but more flexible - No restrictive conditions on melting curves - Emphasis on perturbations may improve numerical stability