-
Lars Bilke authoredLars Bilke authored
date = "2017-02-15T11:17:39+01:00"
title = "Groundwater Flow (Dirichlet)"
project = "Elliptic/square_1x1_GroundWaterFlow/square_1e2.prj"
author = "Dmitri Naumov"
weight = 101
aliases = [ "/docs/benchmarks/" ] # First benchmark page
[menu]
[menu.benchmarks]
parent = "elliptic"
{{< project-link >}}
Equations
We start with simple linear homogeneous elliptic problem:
where
Problem specification and analytical solution
We solve the Laplace equation on a square domain
Input files
TODO: {asset:247:link}
The main project file is square_1e2.prj
. It describes the processes to be solved and the related process variables together with their initial and boundary conditions. It also references the mesh and geometrical objects defined on the mesh.
As of now a small portion of possible inputs is implemented; one can change:
- the mesh file
- the geometry file
- introduce more/different Dirichlet boundary conditions (different geometry or values)
The geometries used to specify the boundary conditions are given in the square_1x1.gml
file.
The input mesh square_1x1_quad_1e2.vtu
is stored in the VTK file format and can be directly visualized in Paraview for example.
Running simulation
To start the simulation (after successful compilation) run:
$ ogs square_1e2.prj
It will produce some output and write the computed result into the square_1e2_result.dat
, which is a simple list of values for every node of the mesh.
The output on the console will be similar to the following one (ignore the spurious error messages "Could not find POINT..."):
error: GEOObjects::getGeoObject(): Could not find POINT "left" in geometry.
error: GEOObjects::getGeoObject(): Could not find POINT "right" in geometry.
info: Initialize processes.
info: Solve processes.
info: -> max. absolute value of diagonal entries = 2.666667e-06
info: -> penalty scaling = 1.000000e+10
info: ------------------------------------------------------------------
info: *** LIS solver computation
info: -> solve
initial vector x : user defined
precision : double
linear solver : CG
preconditioner : none
convergence condition : ||b-Ax||_2 <= 1.0e-16 * ||b-Ax_0||_2
matrix storage format : CSR
linear solver status : normal end
info: iteration: 28/1000000
info: residual: 3.004753e-17
info: ------------------------------------------------------------------
A major part of the output was produced by the linear equation solver (LIS in this case).
Results and evaluation
{{< vis path="Elliptic/square_1x1_GroundWaterFlow/square_1e2_pcs_0_ts_1_t_1.000000.vtu" >}}
The result, written in the square_1e2_result.dat
, can be visualized with Paraview, for example, by including the values into the square_1x1_quad_1e2.vtu
file in the PointData
section:
...
1
0.8
0.6
0.4
0.2
...
-0.6
-0.8
-1
(The next releases shall simplify this procedure.)