Commit ce8e972a authored by Thomas Fetzer's avatar Thomas Fetzer
Browse files

[2pni]

deleted deprecated 2pni folder, the non-isothermal problems can now be
found in the 2p folder.

reviewed by bernd


git-svn-id: svn://svn.iws.uni-stuttgart.de/DUMUX/dumux/trunk@13869 2fb0f335-1f38-0410-981e-8018bf24f1b0
parent 532e7488
add_dumux_test(test_box2pni test_box2pni test_box2pni.cc
${CMAKE_SOURCE_DIR}/bin/runTest.sh
${CMAKE_SOURCE_DIR}/bin/fuzzycomparevtu.py
${CMAKE_SOURCE_DIR}/test/references/injection2pnibox-reference.vtu
${CMAKE_CURRENT_BINARY_DIR}/injection2pnibox-00009.vtu
${CMAKE_CURRENT_BINARY_DIR}/test_box2pni)
add_dumux_test(test_cc2pni test_cc2pni test_cc2pni.cc
${CMAKE_SOURCE_DIR}/bin/runTest.sh
${CMAKE_SOURCE_DIR}/bin/fuzzycomparevtu.py
${CMAKE_SOURCE_DIR}/test/references/injection2pnicc-reference.vtu
${CMAKE_CURRENT_BINARY_DIR}/injection2pnicc-00009.vtu
${CMAKE_CURRENT_BINARY_DIR}/test_cc2pni)
check_PROGRAMS = test_box2pni test_cc2pni
noinst_HEADERS := $(wildcard *.hh)
EXTRA_DIST:=$(wildcard *.input) $(wildcard grids/*.dgf) CMakeLists.txt
test_box2pni_SOURCES = test_box2pni.cc
test_cc2pni_SOURCES = test_cc2pni.cc
include $(top_srcdir)/am/global-rules
DGF
Interval
0 0 % first corner
60 40 % second corner
24 16 % 24 cells in x and 16 in y direction
#
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 2pni box model
*/
#include "config.h"
#include "injectionproblem2pni.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.NumberOfCellsX Resolution in x-direction [-]\n"
"\t-Grid.NumberOfCellsY Resolution in y-direction [-]\n"
"\t-Grid.UpperRightX Length of the domain [m]\n"
"\t-Grid.UpperRightY Height of the domain [m]\n";
std::cout << errorMessageOut
<< "\n";
}
}
////////////////////////
// the main function
////////////////////////
int main(int argc, char** argv)
{
typedef TTAG(InjectionBoxProblem2PNI) ProblemTypeTag;
return Dumux::start<ProblemTypeTag>(argc, argv, usage);
}
###############################################################
# Parameter file for test_2pni.
# Everything behind a '#' is a comment.
# Type "./test_2pni --help" for more information.
###############################################################
###############################################################
# Mandatory arguments
###############################################################
[TimeManager]
DtInitial = 250 # [s]
TEnd = 1e4 # [s]
[Grid]
NumberOfCellsX = 24 # [-] resolution in x-direction
NumberOfCellsY = 16 # [-] resolution in y-direction
UpperRightX = 60 # [m] length of the domain
UpperRightY = 40 # [m] height of the domain
[Problem]
Name = injection2pnibox
###############################################################
# 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 = ...
// -*- 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 2pni CC model
*/
#include "config.h"
#include "injectionproblem2pni.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.NumberOfCellsX Resolution in x-direction [-]\n"
"\t-Grid.NumberOfCellsY Resolution in y-direction [-]\n"
"\t-Grid.UpperRightX Length of the domain [m]\n"
"\t-Grid.UpperRightY Height of the domain [m]\n";
std::cout << errorMessageOut
<< "\n";
}
}
////////////////////////
// the main function
////////////////////////
int main(int argc, char** argv)
{
typedef TTAG(InjectionCCProblem2PNI) ProblemTypeTag;
return Dumux::start<ProblemTypeTag>(argc, argv, usage);
}
###############################################################
# Parameter file for test_2pni.
# Everything behind a '#' is a comment.
# Type "./test_2pni --help" for more information.
###############################################################
###############################################################
# Mandatory arguments
###############################################################
[TimeManager]
DtInitial = 250 # [s]
TEnd = 1e4 # [s]
[Grid]
NumberOfCellsX = 24 # [-] resolution in x-direction
NumberOfCellsY = 16 # [-] resolution in y-direction
UpperRightX = 60 # [m] length of the domain
UpperRightY = 40 # [m] height of the domain
[Problem]
Name = injection2pnicc
###############################################################
# 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 = ...
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment