Skip to content

Commit 7d9a78c

Browse files
committed
Better describe the problems of Vector FE Exs. 6 and 10
1 parent 8509ee8 commit 7d9a78c

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

examples/vector_fe/vector_fe_ex10/vector_fe_ex10.C

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
//
2323
// This example uses Raviart-Thomas elements to solve a model grad-div problem
2424
// in H(div) in both 2d and 3d: -\nabla (\nabla \cdot \vec{u}) + \vec{u} = f.
25+
// Note that, unlike the problem in Vector Finite Elements Example 6, this is
26+
// _not_ an elliptic problem.
2527

2628
// Basic utilities.
2729
#include "libmesh/string_to_enum.h"

examples/vector_fe/vector_fe_ex6/vector_fe_ex6.C

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,11 @@
2121
// \date 2023
2222
//
2323
// This example uses Raviart-Thomas elements to solve a model div-grad problem
24-
// in H(div) in both 2d and 3d. The problem is simply a div-grad formulation,
25-
// \vec{u} = -\nabla p, and \nabla \cdot \vec{u} = f, of the Poisson
26-
// problem in Introduction Example 3, \nabla^2 p = -f.
24+
// in H(div) in both 2d and 3d. The problem is simply a mixed div-grad
25+
// formulation, \vec{u} = -\nabla p, and \nabla \cdot \vec{u} = f, of the
26+
// Poisson problem in Introduction Example 3, \nabla^2 p = -f. In particular,
27+
// unlike in Introduction Example 3, where we solve solely for the scalar field
28+
// p, here we solve for both the vector field \vec{u} and the scalar field p.
2729

2830
// Basic utilities.
2931
#include "libmesh/string_to_enum.h"
@@ -151,7 +153,7 @@ int main (int argc, char ** argv)
151153
// Declare the system "DivGrad" and its variables.
152154
LinearImplicitSystem & system = equation_systems.add_system<LinearImplicitSystem>("DivGrad");
153155

154-
// Set the FE approximation order for the vector and field variables.
156+
// Set the FE approximation order for the vector and scalar field variables.
155157
const Order vector_order = static_cast<Order>(infile("order", 1u));
156158
const Order scalar_order = static_cast<Order>(vector_order - 1u);
157159

0 commit comments

Comments
 (0)