Skip to content
Snippets Groups Projects
Commit 151f6a21 authored by Mathis Kelm's avatar Mathis Kelm
Browse files

[test][phasefield] extract properties

parent d45583d5
No related branches found
No related tags found
No related merge requests found
......@@ -5,7 +5,7 @@
* *
* 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 *
* the Free Software Foundation, either version 3 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
......@@ -17,7 +17,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
*****************************************************************************/
#include "config.h"
#include "problem.hh"
#include <ctime>
#include <iostream>
......@@ -27,7 +26,6 @@
#include <dune/common/timer.hh>
#include <dune/grid/io/file/vtk.hh>
#include <dune/istl/io.hh>
#include <dune/grid/yaspgrid.hh>
#include <dumux/common/properties.hh>
#include <dumux/common/parameters.hh>
......@@ -44,8 +42,7 @@
#include <dumux/io/grid/gridmanager.hh>
#include <dumux/io/vtkoutputmodule.hh>
#include <dumux/discretization/cctpfa.hh>
#include <dumux/phasefield/model.hh>
#include "properties.hh"
template <class Assembler, class SolutionVector, class LocalAssembler>
auto assembleBoundaryFluxes(const Assembler& assembler, const SolutionVector& curSol)
......@@ -75,28 +72,6 @@ auto assembleBoundaryFluxes(const Assembler& assembler, const SolutionVector& cu
return flux;
}
namespace Dumux {
namespace Properties {
namespace TTag {
struct PlainAllenCahn { using InheritsFrom = std::tuple<Phasefield, CCTpfaModel/*BoxModel*/>; };
}
template<class TypeTag>
struct Grid<TypeTag, TTag::PlainAllenCahn> { using type = Dune::YaspGrid<2>; };
template<class TypeTag>
struct Problem<TypeTag, TTag::PlainAllenCahn> { using type = PlainAllenCahnProblem<TypeTag>; };
template<class TypeTag>
struct EnableGridVolumeVariablesCache<TypeTag, TTag::PlainAllenCahn> { static constexpr bool value = true; };
template<class TypeTag>
struct EnableGridGeometryCache<TypeTag, TTag::PlainAllenCahn> { static constexpr bool value = true; };
} // end namespace Properties
} // end namespace Dumux
void usage(const char *progName, const std::string &errorMsg)
{
if (errorMsg.size() > 0) {
......
......@@ -5,7 +5,7 @@
* *
* 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 *
* the Free Software Foundation, either version 3 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
......
// -*- 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 3 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
* \ingroup PhasefieldTests
* \brief The properties of the Allen-Cahn phase-field test.
*/
#ifndef DUMUX_PLAINALLENCAHN_PROPERTIES_HH
#define DUMUX_PLAINALLENCAHN_PROPERTIES_HH
#include <dune/grid/yaspgrid.hh>
#include <dumux/common/properties.hh>
#include <dumux/discretization/cctpfa.hh>
#include <dumux/phasefield/model.hh>
#include "problem.hh"
namespace Dumux::Properties {
namespace TTag {
struct PlainAllenCahn { using InheritsFrom = std::tuple<Phasefield, CCTpfaModel>; };
}
template<class TypeTag>
struct Grid<TypeTag, TTag::PlainAllenCahn> { using type = Dune::YaspGrid<2>; };
template<class TypeTag>
struct Problem<TypeTag, TTag::PlainAllenCahn> { using type = PlainAllenCahnProblem<TypeTag>; };
template<class TypeTag>
struct EnableGridVolumeVariablesCache<TypeTag, TTag::PlainAllenCahn> { static constexpr bool value = true; };
template<class TypeTag>
struct EnableGridGeometryCache<TypeTag, TTag::PlainAllenCahn> { static constexpr bool value = true; };
} // end namespace Dumux::Properties
#endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment