Skip to content

Commit

Permalink
doc: update DAE initialization note (#604)
Browse files Browse the repository at this point in the history
  • Loading branch information
termi-official committed Feb 28, 2023
1 parent 8c32dd1 commit 13a0739
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
DocTestSetup = :(using Ferrite)
```

# Boundary Conditions
# Initial and Boundary Conditions

Every PDE is accompanied with boundary conditions. There are different types of boundary
conditions, and they need to be handled in different ways. Below we discuss how to handle
Expand Down Expand Up @@ -256,7 +256,7 @@ pdbc = PeriodicDirichlet(
)
```

# Initial Conditions
## Initial Conditions

When solving time-dependent problems, initial conditions, different from zero, may be required.
For finite element formulations of ODE-type,
Expand All @@ -273,3 +273,9 @@ apply_analytical!(u, dh, :p, x -> ρ * g * x[2])
```

See also [Time Dependent Problems](@ref) for one example.

!!! note "Consistency"
`apply_analytical!` does not enforce consistency of the applied solution with the system of
equations. Some problems, like for example differential-algebraic systems of equations (DAEs)
need extra care during initialization. We refer to the paper ["Consistent Initial Condition Calculation for Differential-Algebraic Systems" by Brown et al.](dx.doi.org/10.1137/S1064827595289996) for more details on this matter.

File renamed without changes.

0 comments on commit 13a0739

Please sign in to comment.