Skip to content

Commit 90268e9

Browse files
committed
Fix mathematical representation and update boundary condition in AdvectionDiffusion1D.html for accuracy
1 parent 8318291 commit 90268e9

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tutorials/AdvectionDiffusion1D.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ <h2 id="mathematicalformulation"><a name="Mathematical formulation"></a>Mathemat
9090
</p>
9191
<p>\(\frac{d^2u}{dx^2} + 10 \frac{du}{dx} = -10 \cdot e^{-200 \cdot (x - 0.5)^2}\)</p>
9292
<p>
93-
This can be rewritten in the general form: \(-\frac{d}{dx}\left(A(x)\frac{du}{dx}\right) +
94-
B(x)\frac{du}{dx} - C(x)u = D(x)\)
93+
This can be rewritten in the general form: \(\frac{d}{dx}\left(A(x)\frac{du}{dx}\right) +
94+
B(x)\frac{du}{dx} + C(x)u = D(x)\)
9595
</p>
9696
<p>Where for our specific problem:</p>
9797
<ul>
@@ -161,7 +161,7 @@ <h2 id="solvingwithfeascript"><a name="Solving with FEAScript"></a>Solving with
161161
});
162162

163163
// Define boundary conditions
164-
model.addBoundaryCondition("0", ["constantValue", 0]); // Left boundary, u(0) = 0
164+
model.addBoundaryCondition("0", ["constantValue", 1]); // Left boundary, u(0) = 1
165165
model.addBoundaryCondition("1", "zeroGradient"); // Right boundary, zero gradient (du/dx = 0)
166166

167167
// Solve

0 commit comments

Comments
 (0)