FEM2D_POISSON_CG_LAKE A 2D Poisson Problem on a Lake

FEM2D_POISSON_CG_LAKE is a C++ library which sets up the geometry and data for the Poisson problem on a simulated lake with an island, for solution by FEM2D_POISSON_CG.

Licensing:

The computer code and data files described and made available on this web page are distributed under the GNU LGPL license.

Languages:

FEM2D_POISSON_CG_LAKE is available in a C++ version and a FORTRAN90 version and a MATLAB version.

Related Data and Programs:

FEM2D_POISSON_CG, a C++ program which solves Poisson's equation on a triangulated region, using the finite element method, sparse storage, and a conjugate gradient solver.

FEM2D_POISSON_CG_BAFFLE, a C++ library which defines the geometry of a channel with 13 hexagonal baffles, as well as boundary conditions for a given Poisson problem, and is called by fem2d_poisson_cg as part of a solution procedure.

FEM2D_POISSON_CG_ELL, a C++ library which defines the geometry of an L-shaped region, as well as boundary conditions for a given Poisson problem, and is called by fem2d_poisson_cg as part of a solution procedure.

Source Code:

• lake.cpp, the user-supplied routines to evaluate the right hand side, linear coefficient, and boundary conditions;
• lake_output.txt, output from a run of the program;
• lake_nodes.txt, a text file containing a list, for each node, of its X and Y coordinates;
• lake_nodes.png, a PNG image of the nodes.
• lake_elements.txt, a text file containing a list, for each element, of the three nodes that compose it;
• lake_elements.png, a PNG image of the nodes.
• lake_values.txt, a text file containing the solution U at each node (X,Y);

You can go up one level to the C++ source code page.

Last revised on 25 January 2013.