Skip to content

Commit 5fed6ca

Browse files
authored
Merge pull request #564 from bwirthl/move-poro-pressurebased-input
Move porofluid pressure-based input to physics
2 parents b3976fd + 0962b1e commit 5fed6ca

File tree

32 files changed

+435
-464
lines changed

32 files changed

+435
-464
lines changed

src/inpar/4C_inpar_porofluid_pressure_based.hpp

Lines changed: 0 additions & 101 deletions
This file was deleted.

src/inpar/4C_inpar_porofluid_pressure_based_elast.hpp

Lines changed: 0 additions & 75 deletions
This file was deleted.

src/inpar/4C_inpar_porofluid_pressure_based_elast_scatra.hpp

Lines changed: 0 additions & 80 deletions
This file was deleted.

src/inpar/4C_inpar_validconditions.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
#include "4C_inpar_mortar.hpp"
2424
#include "4C_inpar_mpc_rve.hpp"
2525
#include "4C_inpar_particle.hpp"
26-
#include "4C_inpar_porofluid_pressure_based_elast_scatra.hpp"
2726
#include "4C_inpar_s2i.hpp"
2827
#include "4C_inpar_scatra.hpp"
2928
#include "4C_inpar_ssi.hpp"
@@ -32,6 +31,7 @@
3231
#include "4C_inpar_structure.hpp"
3332
#include "4C_inpar_xfem.hpp"
3433
#include "4C_io_input_spec_builders.hpp"
34+
#include "4C_porofluid_pressure_based_elast_scatra_input.hpp"
3535
#include "4C_thermo_input.hpp"
3636

3737
FOUR_C_NAMESPACE_OPEN
@@ -855,7 +855,7 @@ std::vector<Core::Conditions::ConditionDefinition> Input::valid_conditions()
855855
Inpar::RveMpc::set_valid_conditions(condlist);
856856
Inpar::BeamInteraction::set_valid_conditions(condlist);
857857
EHL::set_valid_conditions(condlist);
858-
Inpar::PoroMultiPhaseScaTra::set_valid_conditions(condlist);
858+
PoroMultiPhaseScaTra::set_valid_conditions(condlist);
859859

860860
// finally some conditions that do not have their own files yet are problem-specific
861861
set_miscellaneous_conditions(condlist);

src/inpar/4C_inpar_validparameters.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,6 @@
4141
#include "4C_inpar_pasi.hpp"
4242
#include "4C_inpar_plasticity.hpp"
4343
#include "4C_inpar_poroelast.hpp"
44-
#include "4C_inpar_porofluid_pressure_based.hpp"
45-
#include "4C_inpar_porofluid_pressure_based_elast.hpp"
46-
#include "4C_inpar_porofluid_pressure_based_elast_scatra.hpp"
4744
#include "4C_inpar_poroscatra.hpp"
4845
#include "4C_inpar_problemtype.hpp"
4946
#include "4C_inpar_rebalance.hpp"
@@ -63,6 +60,9 @@
6360
#include "4C_io_input_file_utils.hpp"
6461
#include "4C_io_pstream.hpp"
6562
#include "4C_lubrication_input.hpp"
63+
#include "4C_porofluid_pressure_based_elast_input.hpp"
64+
#include "4C_porofluid_pressure_based_elast_scatra_input.hpp"
65+
#include "4C_porofluid_pressure_based_input.hpp"
6666
#include "4C_thermo_input.hpp"
6767
#include "4C_utils_parameter_list.hpp"
6868

@@ -194,9 +194,9 @@ std::map<std::string, Core::IO::InputSpec> Input::valid_parameters()
194194
Inpar::FS3I::set_valid_parameters(list);
195195
Inpar::PoroElast::set_valid_parameters(list);
196196
Inpar::PoroScaTra::set_valid_parameters(list);
197-
Inpar::POROMULTIPHASE::set_valid_parameters(list);
198-
Inpar::PoroMultiPhaseScaTra::set_valid_parameters(list);
199-
Inpar::POROFLUIDMULTIPHASE::set_valid_parameters(list);
197+
POROMULTIPHASE::set_valid_parameters(list);
198+
PoroMultiPhaseScaTra::set_valid_parameters(list);
199+
POROFLUIDMULTIPHASE::set_valid_parameters(list);
200200
EHL::set_valid_parameters(list);
201201
Inpar::SSI::set_valid_parameters(list);
202202
Inpar::SSTI::set_valid_parameters(list);

src/porofluid_pressure_based/4C_porofluid_pressure_based_dyn.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,8 @@ void porofluidmultiphase_dyn(int restart)
119119
// algorithm construction depending on
120120
// time-integration (or stationary) scheme
121121
// -------------------------------------------------------------------
122-
auto timintscheme = Teuchos::getIntegralValue<Inpar::POROFLUIDMULTIPHASE::TimeIntegrationScheme>(
123-
porodyn, "TIMEINTEGR");
122+
auto timintscheme =
123+
Teuchos::getIntegralValue<POROFLUIDMULTIPHASE::TimeIntegrationScheme>(porodyn, "TIMEINTEGR");
124124

125125
// build poro fluid time integrator
126126
std::shared_ptr<Adapter::PoroFluidMultiphase> algo = POROFLUIDMULTIPHASE::Utils::create_algorithm(

src/inpar/4C_inpar_porofluid_pressure_based.cpp renamed to src/porofluid_pressure_based/4C_porofluid_pressure_based_input.cpp

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,14 @@
55
//
66
// SPDX-License-Identifier: LGPL-3.0-or-later
77

8-
#include "4C_inpar_porofluid_pressure_based.hpp"
8+
#include "4C_porofluid_pressure_based_input.hpp"
99

1010
#include "4C_inpar_bio.hpp"
1111
#include "4C_utils_parameter_list.hpp"
1212

1313
FOUR_C_NAMESPACE_OPEN
1414

15-
void Inpar::POROFLUIDMULTIPHASE::set_valid_parameters(
16-
std::map<std::string, Core::IO::InputSpec>& list)
15+
void POROFLUIDMULTIPHASE::set_valid_parameters(std::map<std::string, Core::IO::InputSpec>& list)
1716
{
1817
using Teuchos::tuple;
1918
using namespace Core::IO::InputSpecBuilders;
@@ -113,25 +112,25 @@ void Inpar::POROFLUIDMULTIPHASE::set_valid_parameters(
113112

114113
porofluidmultiphasedyn.specs.emplace_back(deprecated_selection<VectorNorm>("VECTORNORM_RESF",
115114
{
116-
{"L1", Inpar::POROFLUIDMULTIPHASE::norm_l1},
117-
{"L1_Scaled", Inpar::POROFLUIDMULTIPHASE::norm_l1_scaled},
118-
{"L2", Inpar::POROFLUIDMULTIPHASE::norm_l2},
119-
{"Rms", Inpar::POROFLUIDMULTIPHASE::norm_rms},
120-
{"Inf", Inpar::POROFLUIDMULTIPHASE::norm_inf},
115+
{"L1", POROFLUIDMULTIPHASE::norm_l1},
116+
{"L1_Scaled", POROFLUIDMULTIPHASE::norm_l1_scaled},
117+
{"L2", POROFLUIDMULTIPHASE::norm_l2},
118+
{"Rms", POROFLUIDMULTIPHASE::norm_rms},
119+
{"Inf", POROFLUIDMULTIPHASE::norm_inf},
121120
},
122121
{.description = "type of norm to be applied to residuals",
123-
.default_value = Inpar::POROFLUIDMULTIPHASE::norm_l2}));
122+
.default_value = POROFLUIDMULTIPHASE::norm_l2}));
124123

125124
porofluidmultiphasedyn.specs.emplace_back(deprecated_selection<VectorNorm>("VECTORNORM_INC",
126125
{
127-
{"L1", Inpar::POROFLUIDMULTIPHASE::norm_l1},
128-
{"L1_Scaled", Inpar::POROFLUIDMULTIPHASE::norm_l1_scaled},
129-
{"L2", Inpar::POROFLUIDMULTIPHASE::norm_l2},
130-
{"Rms", Inpar::POROFLUIDMULTIPHASE::norm_rms},
131-
{"Inf", Inpar::POROFLUIDMULTIPHASE::norm_inf},
126+
{"L1", POROFLUIDMULTIPHASE::norm_l1},
127+
{"L1_Scaled", POROFLUIDMULTIPHASE::norm_l1_scaled},
128+
{"L2", POROFLUIDMULTIPHASE::norm_l2},
129+
{"Rms", POROFLUIDMULTIPHASE::norm_rms},
130+
{"Inf", POROFLUIDMULTIPHASE::norm_inf},
132131
},
133132
{.description = "type of norm to be applied to residuals",
134-
.default_value = Inpar::POROFLUIDMULTIPHASE::norm_l2}));
133+
.default_value = POROFLUIDMULTIPHASE::norm_l2}));
135134

136135
// Iterationparameters
137136
porofluidmultiphasedyn.specs.emplace_back(parameter<double>(

0 commit comments

Comments
 (0)