Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
dumux-phasefield
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dumux-appl
dumux-phasefield
Commits
151f6a21
Commit
151f6a21
authored
3 years ago
by
Mathis Kelm
Browse files
Options
Downloads
Patches
Plain Diff
[test][phasefield] extract properties
parent
d45583d5
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
test/plainallencahn/main.cc
+2
-27
2 additions, 27 deletions
test/plainallencahn/main.cc
test/plainallencahn/problem.hh
+1
-1
1 addition, 1 deletion
test/plainallencahn/problem.hh
test/plainallencahn/properties.hh
+56
-0
56 additions, 0 deletions
test/plainallencahn/properties.hh
with
59 additions
and
28 deletions
test/plainallencahn/main.cc
+
2
−
27
View file @
151f6a21
...
...
@@ -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
)
{
...
...
This diff is collapsed.
Click to expand it.
test/plainallencahn/problem.hh
+
1
−
1
View file @
151f6a21
...
...
@@ -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, *
...
...
This diff is collapsed.
Click to expand it.
test/plainallencahn/properties.hh
0 → 100644
+
56
−
0
View file @
151f6a21
// -*- 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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment