Commit e21026e1 authored by Bernd Flemisch's avatar Bernd Flemisch

initial version, extracted from dumux-devel

parents
cmake_minimum_required(VERSION 2.8.12)
project(Roll2015a CXX)
if(NOT (dune-common_DIR OR dune-common_ROOT OR
"${CMAKE_PREFIX_PATH}" MATCHES ".*dune-common.*"))
string(REPLACE ${CMAKE_PROJECT_NAME} dune-common dune-common_DIR
${PROJECT_BINARY_DIR})
endif()
#find dune-common and set the module path
find_package(dune-common REQUIRED)
list(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake/modules"
${dune-common_MODULE_PATH})
#include the dune macros
include(DuneMacros)
# start a dune project with information from dune.module
dune_project()
dune_enable_all_packages()
add_subdirectory("m4")
add_subdirectory("appl")
add_subdirectory("doc")
add_subdirectory("dumux")
add_subdirectory("cmake/modules")
# finalize the dune project, e.g. generating config.h etc.
finalize_dune_project(GENERATE_CONFIG_H_CMAKE)
This file has been created automatically. Please adapt it to your needs.
===============================
The content of this DUNE module was extracted from the module /temp/stefanr/dumux/dumux-devel.
In particular, the following subfolders of /temp/stefanr/dumux/dumux-devel have been extracted:
appl/sagd,
appl/sagdLab,
appl/sagdCyclic,
appl/sagdLabCyclic,
appl/sagdCyclicHyst,
appl/sagdLabCyclicHyst,
Additionally, all headers in /temp/stefanr/dumux/dumux-devel that are required to build the
executables from the sources
appl/sagd/sagd.cc,
appl/sagdLab/sagdLab.cc,
appl/sagdCyclic/sagdCyclic.cc,
appl/sagdLabCyclic/sagdLabCyclic.cc,
appl/sagdCyclicHyst/sagdCyclicHyst.cc,
appl/sagdLabCyclicHyst/sagdLabCyclicHyst.cc,
have been extracted. You can build the module just like any other DUNE
module. For building and running the executables, please go to the folders
containing the sources listed above.
===============================
When this module was created, the original module /temp/stefanr/dumux/dumux-devel was using
the following list of DUNE modules and third-party libraries.
BEWARE: This does not necessarily mean that the applications in this
extracted module actually depend on all these components.
prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@
CXX=@CXX@
CC=@CC@
DEPENDENCIES=@REQUIRES@
Name: @PACKAGE_NAME@
Version: @VERSION@
Description: Roll2015a module
URL: http://dune-project.org/
Requires: dune-common dune-geometry dune-istl dune-grid dumux dumux-devel
Libs: -L${libdir}
Cflags: -I${includedir}
add_subdirectory("sagd")
add_subdirectory("sagdCyclic")
add_subdirectory("sagdCyclicHyst")
add_subdirectory("sagdLab")
add_subdirectory("sagdLabCyclic")
add_subdirectory("sagdLabCyclicHyst")
set(CMAKE_BUILD_TYPE Release)
add_executable_all(sagd sagd.cc)
add_folder_link("./grids")
DGF
Interval
0 0 % first corner
60 40 % second corner
120 80 % 22 cells in x and 12 in y direction
#
GridParameter
overlap 0
periodic
closure green
#GridParameter
BOUNDARYDOMAIN
default 1 % all boundaries have id 1
#BOUNDARYDOMAIN
# unitcube.dgf
// -*- mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
// vi: set et ts=4 sw=4 sts=4:
/*****************************************************************************
* See the file COPYING for full copying permissions. *
* *
* This program is free software: you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation, either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
*****************************************************************************/
/*!
* \file
*
* \brief test for the 3p3cni box model
*/
#include "config.h"
//#include "kuevetteproblem.hh"
#include "sagdproblem.hh"
#include <dumux/common/start.hh>
/*!
* \brief Provides an interface for customizing error messages associated with
* reading in parameters.
*
* \param progName The name of the program, that was tried to be started.
* \param errorMsg The error message that was issued by the start function.
* Comprises the thing that went wrong and a general help message.
*/
void usage(const char *progName, const std::string &errorMsg)
{
if (errorMsg.size() > 0) {
std::string errorMessageOut = "\nUsage: ";
errorMessageOut += progName;
errorMessageOut += " [options]\n";
errorMessageOut += errorMsg;
errorMessageOut += "\n\nThe list of mandatory options for this program is:\n"
"\t-TimeManager.TEnd End of the simulation [s] \n"
"\t-TimeManager.DtInitial Initial timestep size [s] \n"
"\t-Grid.File Name of the file containing the grid \n"
"\t definition in DGF format\n";
std::cout << errorMessageOut
<< "\n";
}
}
int main(int argc, char** argv)
{
// typedef TTAG(KuevetteBoxProblem) ProblemTypeTag;
// typedef TTAG(ColumnBoxProblem) ProblemTypeTag;
typedef TTAG(SagdBoxProblem) ProblemTypeTag;
//typedef TTAG(SagdCCProblem) ProblemTypeTag;
return Dumux::start<ProblemTypeTag>(argc, argv, usage);
}
###############################################################
# Parameter file for test_3p3cni.
# Everything behind a '#' is a comment.
# Type "./test_3p3cni --help" for more information.
###############################################################
###############################################################
# Mandatory arguments
###############################################################
[TimeManager]
DtInitial = 3600 # [s]
TEnd = 1e8 #1e8 [s] Seconds in a year from hoursfile
MaxTimeStepSize = 3600. # [s]
[Grid]
File = ./grids/kuevette.dgf
[Problem]
Name = sagd # name passed to the output routines
[Implicit]
#MassUpwindWeight = "1.0"
MaxTimeStepDivisions = 100
[]
####################################################################
Newton
####################################################################
[ Newton ]
#MaxIterations = 1000
#AbsTolerance = 9e-1
#EnableAbsoluteCriterion = 1
EnableRelativeCriterion = 1
RelTolerance = 1e-02
UseLineSearch = 0
MaxSteps = 8
#SatisfyAbsAndRel = 0
WriteConvergence = 0
#Verbosity = 2
#[]
#PreconditionerIterations = 3
#PreconditionerRelaxation = 1.0
###############################################################
# Simulation restart
#
# DuMux simulations can be restarted from *.drs files
# Set Restart to the value of a specific file,
# e.g.: 'Restart = 27184.1' for the restart file
# name_time=27184.1_rank=0.drs
# Please comment in the two lines below, if restart is desired.
###############################################################
#[TimeManager]
#Restart = 3.1104e+06
This diff is collapsed.
This diff is collapsed.
set(CMAKE_BUILD_TYPE Release)
add_executable_all(sagdCyclic sagdCyclic.cc)
add_folder_link("./grids")
DGF
Interval
0 0 % first corner
60 40 % second corner
120 80 % 22 cells in x and 12 in y direction
#
GridParameter
overlap 0
periodic
closure green
#GridParameter
BOUNDARYDOMAIN
default 1 % all boundaries have id 1
#BOUNDARYDOMAIN
# unitcube.dgf
This diff is collapsed.
// -*- mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
// vi: set et ts=4 sw=4 sts=4:
/*****************************************************************************
* See the file COPYING for full copying permissions. *
* *
* This program is free software: you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation, either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
*****************************************************************************/
/*!
* \file
*
* \brief test for the 3p3cni box model
*/
#include "config.h"
//#include "kuevetteproblem.hh"
#include "sagdCyclicproblem.hh"
#include <dumux/common/start.hh>
/*!
* \brief Provides an interface for customizing error messages associated with
* reading in parameters.
*
* \param progName The name of the program, that was tried to be started.
* \param errorMsg The error message that was issued by the start function.
* Comprises the thing that went wrong and a general help message.
*/
void usage(const char *progName, const std::string &errorMsg)
{
if (errorMsg.size() > 0) {
std::string errorMessageOut = "\nUsage: ";
errorMessageOut += progName;
errorMessageOut += " [options]\n";
errorMessageOut += errorMsg;
errorMessageOut += "\n\nThe list of mandatory options for this program is:\n"
"\t-TimeManager.TEnd End of the simulation [s] \n"
"\t-TimeManager.DtInitial Initial timestep size [s] \n"
"\t-Grid.File Name of the file containing the grid \n"
"\t definition in DGF format\n";
std::cout << errorMessageOut
<< "\n";
}
}
int main(int argc, char** argv)
{
// typedef TTAG(KuevetteBoxProblem) ProblemTypeTag;
// typedef TTAG(ColumnBoxProblem) ProblemTypeTag;
typedef TTAG(SagdCyclicBoxProblem) ProblemTypeTag;
//typedef TTAG(SagdCCProblem) ProblemTypeTag;
return Dumux::start<ProblemTypeTag>(argc, argv, usage);
}
###############################################################
# Parameter file for test_3p3cni.
# Everything behind a '#' is a comment.
# Type "./test_3p3cni --help" for more information.
###############################################################
###############################################################
# Mandatory arguments
###############################################################
[TimeManager]
DtInitial = 3600 # [s]
TEnd = 1e8 # [s]
MaxTimeStepSize = 3600. # [s]
[Grid]
File = ./grids/kuevette.dgf
[Problem]
Name = sagdCyclic # name passed to the output routines
[Implicit]
#MassUpwindWeight = "1.0"
MaxTimeStepDivisions = 100
[]
####################################################################
Newton
####################################################################
[ Newton ]
#MaxIterations = 1000
#AbsTolerance = 9e-1
#EnableAbsoluteCriterion = 1
EnableRelativeCriterion = 1
RelTolerance = 1e-02
UseLineSearch = 0
MaxSteps = 8
#SatisfyAbsAndRel = 0
WriteConvergence = 0
#Verbosity = 2
#[]
#PreconditionerIterations = 3
#PreconditionerRelaxation = 1.0
###############################################################
# Simulation restart
#
# DuMux simulations can be restarted from *.drs files
# Set Restart to the value of a specific file,
# e.g.: 'Restart = 27184.1' for the restart file
# name_time=27184.1_rank=0.drs
# Please comment in the two lines below, if restart is desired.
###############################################################
# [TimeManager]
# Restart = 3.3025e+07
This diff is collapsed.
This diff is collapsed.
set(CMAKE_BUILD_TYPE Release)
add_executable_all(sagdCyclicHyst sagdCyclicHyst.cc)
add_folder_link("./grids")
DGF
Interval
0 0 % first corner
60 40 % second corner
120 80 % 22 cells in x and 12 in y direction
#
GridParameter
overlap 0
periodic
closure green
#GridParameter
BOUNDARYDOMAIN
default 1 % all boundaries have id 1
#BOUNDARYDOMAIN
# unitcube.dgf
This diff is collapsed.
// -*- mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
// vi: set et ts=4 sw=4 sts=4:
/*****************************************************************************
* See the file COPYING for full copying permissions. *
* *
* This program is free software: you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation, either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
*****************************************************************************/
/*!
* \file
*
* \brief test for the 3p3cni box model
*/
#include "config.h"
//#include "kuevetteproblem.hh"
#include "sagdCyclicHystproblem.hh"
#include <dumux/common/start.hh>
/*!
* \brief Provides an interface for customizing error messages associated with
* reading in parameters.
*
* \param progName The name of the program, that was tried to be started.
* \param errorMsg The error message that was issued by the start function.
* Comprises the thing that went wrong and a general help message.
*/
void usage(const char *progName, const std::string &errorMsg)
{
if (errorMsg.size() > 0) {
std::string errorMessageOut = "\nUsage: ";
errorMessageOut += progName;
errorMessageOut += " [options]\n";
errorMessageOut += errorMsg;
errorMessageOut += "\n\nThe list of mandatory options for this program is:\n"
"\t-TimeManager.TEnd End of the simulation [s] \n"
"\t-TimeManager.DtInitial Initial timestep size [s] \n"
"\t-Grid.File Name of the file containing the grid \n"
"\t definition in DGF format\n";
std::cout << errorMessageOut
<< "\n";
}
}
int main(int argc, char** argv)
{
// typedef TTAG(KuevetteBoxProblem) ProblemTypeTag;
// typedef TTAG(ColumnBoxProblem) ProblemTypeTag;
typedef TTAG(SagdCyclicHystBoxProblem) ProblemTypeTag;
//typedef TTAG(SagdCCProblem) ProblemTypeTag;
return Dumux::start<ProblemTypeTag>(argc, argv, usage);
}
###############################################################
# Parameter file for test_3p3cni.
# Everything behind a '#' is a comment.
# Type "./test_3p3cni --help" for more information.
###############################################################
###############################################################
# Mandatory arguments
###############################################################
[TimeManager]
DtInitial = 100 # [s]
TEnd = 1e8 # [s]
MaxTimeStepSize = 100. # [s]
[Grid]
File = ./grids/kuevette.dgf
[Problem]
Name = sagdCyclicHyst # name passed to the output routines
[Implicit]
#MassUpwindWeight = "1.0"
MaxTimeStepDivisions = 100
[]
####################################################################
Newton
####################################################################
[ Newton ]
#MaxIterations = 1000
#AbsTolerance = 9e-1
#EnableAbsoluteCriterion = 1
EnableRelativeCriterion = 1
RelTolerance = 1e-02
UseLineSearch = 0
MaxSteps = 8
#SatisfyAbsAndRel = 0
WriteConvergence = 0
#Verbosity = 2
#[]
#PreconditionerIterations = 3
#PreconditionerRelaxation = 1.0
###############################################################
# Simulation restart
#
# DuMux simulations can be restarted from *.drs files
# Set Restart to the value of a specific file,
# e.g.: 'Restart = 27184.1' for the restart file
# name_time=27184.1_rank=0.drs
# Please comment in the two lines below, if restart is desired.
###############################################################
# [TimeManager]
# Restart = 3.3025e+07
This diff is collapsed.
This diff is collapsed.
set(CMAKE_BUILD_TYPE Release)
add_executable_all(sagdLab sagdLab.cc)
add_folder_link("./grids")
DGF
Interval
0 0 % first corner
2 4 % second corner
50 100 % 22 cells in x and 12 in y direction
#
GridParameter
overlap 0
periodic
closure green
#GridParameter
BOUNDARYDOMAIN
default 1 % all boundaries have id 1
#BOUNDARYDOMAIN
# unitcube.dgf
// -*- mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
// vi: set et ts=4 sw=4 sts=4:
/*****************************************************************************
* See the file COPYING for full copying permissions. *
* *
* This program is free software: you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation, either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
*****************************************************************************/
/*!
* \file
*
* \brief test for the 3p3cni box model
*/
#include "config.h"
//#include "kuevetteproblem.hh"
#include "sagdLabproblem.hh"
#include <dumux/common/start.hh>
/*!
* \brief Provides an interface for customizing error messages associated with
* reading in parameters.
*
* \param progName The name of the program, that was tried to be started.
* \param errorMsg The error message that was issued by the start function.
* Comprises the thing that went wrong and a general help message.
*/
void usage(const char *progName, const std::string &errorMsg)
{
if (errorMsg.size() > 0) {
std::string errorMessageOut = "\nUsage: ";
errorMessageOut += progName;
errorMessageOut += " [options]\n";
errorMessageOut += errorMsg;
errorMessageOut += "\n\nThe list of mandatory options for this program is:\n"
"\t-TimeManager.TEnd End of the simulation [s] \n"
"\t-TimeManager.DtInitial Initial timestep size [s] \n"
"\t-Grid.File Name of the file containing the grid \n"
"\t definition in DGF format\n";
std::cout << errorMessageOut
<< "\n";
}
}
int main(int argc, char** argv)
{
// typedef TTAG(KuevetteBoxProblem) ProblemTypeTag;
// typedef TTAG(ColumnBoxProblem) ProblemTypeTag;
typedef TTAG(SagdLabBoxProblem) ProblemTypeTag;
//typedef TTAG(SagdLabCCProblem) ProblemTypeTag;
return Dumux::start<ProblemTypeTag>(argc, argv, usage);
}
###############################################################
# Parameter file for test_3p3cni.
# Everything behind a '#' is a comment.
# Type "./test_3p3cni --help" for more information.
###############################################################
###############################################################
# Mandatory arguments
###############################################################
[TimeManager]
DtInitial = 1000 # [s]
TEnd = 1e8 #[s] Seconds in a year from hoursfile
MaxTimeStepSize = 1000. # [s]
[Grid]
File = ./grids/kuevette.dgf
[Problem]
Name = sagdLabRBOben # name passed to the output routines
[Implicit]
#MassUpwindWeight = "1.0"
MaxTimeStepDivisions = 100
[]
####################################################################
Newton
####################################################################
[ Newton ]
#MaxIterations = 1000
#AbsTolerance = 9e-1
#EnableAbsoluteCriterion = 1
EnableRelativeCriterion = 1
RelTolerance = 1e-02
UseLineSearch = 0
MaxSteps = 8
#SatisfyAbsAndRel = 0
WriteConvergence = 0
#Verbosity = 2
#[]
#PreconditionerIterations = 3
#PreconditionerRelaxation = 1.0
###############################################################
# Simulation restart
#
# DuMux simulations can be restarted from *.drs files
# Set Restart to the value of a specific file,
# e.g.: 'Restart = 27184.1' for the restart file
# name_time=27184.1_rank=0.drs
# Please comment in the two lines below, if restart is desired.
###############################################################
#[TimeManager]
#Restart = 3.1104e+06
This diff is collapsed.
This diff is collapsed.
set(CMAKE_BUILD_TYPE Release)
add_executable_all(sagdLabCyclic sagdLabCyclic.cc)
add_folder_link("./grids")
DGF
Interval
0 0 % first corner
2 4 % second corner
50 100 % 22 cells in x and 12 in y direction
#
GridParameter
overlap 0
periodic
closure green
#GridParameter
BOUNDARYDOMAIN
default 1 % all boundaries have id 1
#BOUNDARYDOMAIN
# unitcube.dgf
// -*- mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
// vi: set et ts=4 sw=4 sts=4:
/*****************************************************************************
* See the file COPYING for full copying permissions. *
* *
* This program is free software: you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation, either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program. If not, see <http://www.gnu.org/licenses/>. *