@@ -146,14 +146,14 @@ <h2 id="mathematicalformulation"><a name="Mathematical formulation"></a>Mathemat
146146 < p >
147147 The steady Stokes equations for an incompressible Newtonian fluid with no body forces are: \(\nabla
148148 \cdot \mathbf{u} = 0\) and \(-\mu \nabla^{2} \mathbf{u} + \nabla p = \mathbf{0}\), where
149- \(\mathbf{u} = (u,v)\) is the velocity vector, \(p\) is the pressure, and \(\mu\) is the dynamic
149+ \(\mathbf{u} = (u,v)\) is the velocity vector, \(p\) is the pressure and \(\mu\) is the dynamic
150150 viscosity. In the FEAScript implementation below, we set the viscosity coefficient to \(\mu = 1.0\).
151151 </ p >
152152
153153 < div class ="center-image ">
154154 < img src ="../assets/stokes-2d-lid-driven.png " alt ="2D Stokes flow schematic " width ="300 " />
155155 < p class ="image-caption ">
156- Schematic of the 2D lid-driven cavity: horizontal velocity (u=1) at the top edge, and no-slip
156+ Schematic of the 2D lid-driven cavity: horizontal velocity (u=1) at the top edge and no-slip
157157 condition (u=v=0) at the other edges.
158158 </ p >
159159 </ div >
@@ -180,8 +180,8 @@ <h2 id="solvingwithfeascript"><a name="Solving with FEAScript"></a>Solving with
180180</head></ pre
181181 >
182182 < p >
183- We should then define the problem parameters, such as the model type, the mesh configuration, and
184- the boundary conditions. This is performed using JavaScript objects directly in the HTML file:
183+ We should then define the problem parameters, such as the model type, the mesh configuration and
184+ the boundary conditions. This is performed using the FEAScript API directly in the HTML file:
185185 </ p >
186186 < pre class ="prettyprint ">
187187<body>
@@ -250,7 +250,7 @@ <h2 id="solvingwithfeascript"><a name="Solving with FEAScript"></a>Solving with
250250 Since the Stokes solver uses a mixed formulation, the solution vector contains all DOFs packed
251251 sequentially: \([u_0, \ldots, u_{N_2-1}, \, v_0, \ldots, v_{N_2-1}, \, p_0, \ldots, p_{N_1-1}]\),
252252 where \(N_2\) is the number of velocity nodes (Q2) and \(N_1\) is the number of pressure nodes
253- (Q1). The velocity components are extracted by slicing the solution vector, and each field can then
253+ (Q1). The velocity components are extracted by slicing the solution vector and each field can then
254254 be plotted individually using the existing < code > plotSolution</ code > function.
255255 </ p >
256256 < p >
0 commit comments