Skip to content

Commit a8b9980

Browse files
committed
Fix paths in advection-diffusion
1 parent 5616825 commit a8b9980

2 files changed

Lines changed: 16 additions & 11 deletions

File tree

src/advection_diffusion.jl

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -82,20 +82,25 @@
8282

8383
# The meshed model is like following:
8484

85-
# ![Pentagon_2D_Mesh](Pentagon_2D_Mesh.png)
85+
# ![Pentagon_2D_Mesh](../assets/advection_diffusion/Pentagon_2D_Mesh.png)
8686

8787
# ## Numerical Scheme
8888

89-
# The weak form of a PDE is a reformulation that allows the problem to be solved in a broader function space. Instead of requiring the solution to satisfy the PDE at every point (as in the strong form), the weak form requires the solution to satisfy an integral equation. This makes it particularly suitable for numerical methods such as the Finite Element Method.
89+
# The weak form of a PDE is a reformulation that allows the problem to be solved in a broader
90+
# function space. Instead of requiring the solution to satisfy the PDE at every point (as in the strong form),
91+
# the weak form requires the solution to satisfy an integral equation. This makes it particularly suitable for
92+
# numerical methods such as the Finite Element Method.
9093

91-
# Since we already hcave the original PDE (strong form), we can multiply each side by a test function $v \in H^1(\Omega)$(functions with square-integrable first derivatives). $v$ satisfies the Dirichlet boundary condition of $0$. Make integral on both sides.
94+
# Since we already hcave the original PDE (strong form), we can multiply each side by a test
95+
# function $v \in H^1(\Omega)$(functions with square-integrable first derivatives). $v$ satisfies
96+
# the Dirichlet boundary condition of $0$. Make integral on both sides.
9297

9398
# The weak form associated with this formulation is, find $T \in H^1(\Omega)$, such that:
94-
# $$
99+
# ```math
95100
# \int_\Omega v (\mathbf{u} \cdot \nabla T) \, \mathrm{d}\Omega
96101
# + \int_\Omega D \nabla T \cdot \nabla v \, \mathrm{d}\Omega
97102
# = 0
98-
# $$
103+
# ```
99104

100105
# ## FE spaces
101106

@@ -106,7 +111,7 @@ using GridapGmsh
106111

107112
# Import the model from file using GmshDiscreteModel:
108113

109-
model_pentagon = GmshDiscreteModel("pentagon_mesh.msh")
114+
model_pentagon = GmshDiscreteModel("../models/pentagon_mesh.msh")
110115

111116
# Set up the test FE space $V_0$, which conforms the zero value boundary conditions.
112117

@@ -165,8 +170,8 @@ writevtk(Ω,"results_non_zero",cellfields=["uh_non_zero"=>uh_non_zero])
165170

166171
# We can use the ParaView to preview the results clearly. Here is the temperature distribution without any flow velocity:
167172

168-
# ![Result_zero](Result_zero.png)
173+
# ![Result_zero](../assets/advection_diffusion/Result_zero.png)
169174

170175
# Here is the temperature distribution with a flow velocity of 2 going up:
171176

172-
# ![Result_zero](Result_non_zero.png)
177+
# ![Result_zero](../assets/advection_diffusion/Result_non_zero.png)

src/stokes_blocks.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@
4141
# ```
4242
#
4343
# where:
44-
# - $$A$$: Vector Laplacian (velocity block)
45-
# - $$B$$: Divergence operator
46-
# - $$B^T$$: Gradient operator
44+
# - $A$: Vector Laplacian (velocity block)
45+
# - $B$: Divergence operator
46+
# - $B^T$: Gradient operator
4747
#
4848
# ## Solution strategy
4949
#

0 commit comments

Comments
 (0)