diff --git a/examples/cahn_hilliard/main.cc b/examples/cahn_hilliard/main.cc index 3357cd4d6529da57d9db7644c169b7f636053716..6ddde40f8b2aaaf10460f5fa2c18c267a815a2fc 100644 --- a/examples/cahn_hilliard/main.cc +++ b/examples/cahn_hilliard/main.cc @@ -85,7 +85,7 @@ public: // In the `source` function, we implement the derivative of the free energy. // This demonstrates how parts of the local residual can be split into model specific - // parts and parts that might change from scenario to scenario. + // parts (see `CahnHilliardModelLocalResidual`) and parts that might change from scenario to scenario. template<class ElementVolumeVariables> NumEqVector source(const Element &element, const FVElementGeometry& fvGeometry, @@ -114,7 +114,7 @@ public: // The parameters interfaces are used in the local residual (see Part 1). // We can name this interface however we want as long as we adapt the calling site - // in the `LocalResidual` class in `model.hh`. + // in the `CahnHilliardModelLocalResidual` class in `model.hh`. // [[codeblock]] Scalar mobility() const { return mobility_; } diff --git a/examples/cahn_hilliard/model.hh b/examples/cahn_hilliard/model.hh index e8e62cf6062e2fe976e69c4b60341050d9eb515c..8fdc7279022779d1b8b4d127647c0bc4fa96e1f6 100644 --- a/examples/cahn_hilliard/model.hh +++ b/examples/cahn_hilliard/model.hh @@ -181,14 +181,13 @@ public: } // [[/codeblock]] - // **Flux term:** The function `computeFlux` computes the fluxes - // over a sub control volume faces, including the integration over - // the area of the face. + // **Flux term:** The function `computeFlux` computes the integrated + // fluxes over a sub control volume face. // // ```math // \begin{aligned} - // F_{K,\sigma,0} &= -M \sum_{B \in \mathcal{B}_K} \mu_{h,B} \nabla N_B \cdot\boldsymbol{n} \vert \sigma \vert \cr - // F_{K,\sigma,1} &= -\gamma \sum_{B \in \mathcal{B}_K} c_{h,B} \nabla N_B \cdot\boldsymbol{n} \vert \sigma \vert + // F_{K,\sigma,0} &= -M \vert \sigma \vert \sum_{B \in \mathcal{B}_K} \mu_{h,B} \nabla N_B \cdot\boldsymbol{n} \cr + // F_{K,\sigma,1} &= -\gamma \vert \sigma \vert \sum_{B \in \mathcal{B}_K} c_{h,B} \nabla N_B \cdot\boldsymbol{n} // \end{aligned} // ```` // @@ -209,7 +208,7 @@ public: for (const auto& scv : scvs(fvGeometry)) { const auto& volVars = elemVolVars[scv]; - // v.axpy(a, w) means v <- v + a*w + // v.axpy(a, w) means v += a*w gradConcentration.axpy( volVars.concentration(), fluxVarCache.gradN(scv.indexInElement())