Skip to content

Commit 25ac35e

Browse files
author
Pierre Horgue
committed
OpenFOAM-9: fix compatibility
1 parent 6ff873c commit 25ac35e

File tree

11 files changed

+14
-16
lines changed

11 files changed

+14
-16
lines changed

libraries/numericalMethods/timestepManager/timestepManager.C

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ Foam::timestepManager::timestepManager(
4747
vf_(vf),
4848
truncationError_(truncationError),
4949
dryCells_(dryCells),
50-
timeScheme_(vf.mesh().schemes().ddt("ddt("+vf.name()+")")),
50+
timeScheme_(vf.mesh().ddtScheme("ddt("+vf.name()+")")),
5151
d3dt3Operator_(vf.mesh(),runTime.deltaTValue()),
5252
d2dt2Operator_(vf.mesh()),
5353
dVmax_(0),

libraries/porousBoundaryConditions/eventFlux/eventFlux.C

+2-2
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ eventFlux
8080
{
8181
word eventFileName = dict.lookupOrDefault<word>("eventFile","");
8282
//- Read if backward time scheme is used
83-
if (internalField().mesh().schemes().ddt("source") == "backward")
83+
if (internalField().mesh().ddtScheme("source") == "backward")
8484
{
8585
isBackwardScheme_ = true;
8686
}
@@ -130,7 +130,7 @@ eventFlux
130130
}
131131

132132
//- Read if backward time scheme is used
133-
if (word(internalField().mesh().schemes().ddt("source")) == "backward")
133+
if (word(internalField().mesh().ddtScheme("source")) == "backward")
134134
{
135135
isBackwardScheme_ = true;
136136
}

libraries/porousModels/porousMediumTransportModels/dualPorosityTransport/dualPorosityTransport.C

+2-2
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ void Foam::porousMediumTransportModels::dualPorosityTransport::solveTransport
124124
//- fracture part
125125
composition_.correct(U, theta);
126126

127-
dictionary solverDict = pmModel_.mesh().solution().solverDict("C");
127+
dictionary solverDict = pmModel_.mesh().solverDict("C");
128128
forAll(composition_.Y(), speciesi)
129129
{
130130
auto& C = composition_.Y(speciesi);
@@ -178,7 +178,7 @@ void Foam::porousMediumTransportModels::dualPorosityTransport::solveTransport
178178
+ alphaS_ * thetaMatrix_ * (Cfracture - C)
179179
);
180180

181-
CMatrixEqn.solve(pmModel_.mesh().solution().solverDict("C"));
181+
CMatrixEqn.solve(pmModel_.mesh().solverDict("C"));
182182

183183
Info<< "Concentration: Min(" << speciesName << ") = " << gMin(C.internalField())
184184
<< " Max(" << speciesName << ") = " << gMax(C.internalField())

libraries/porousModels/porousMediumTransportModels/simplePorosityTransport/simplePorosityTransport.C

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ void Foam::porousMediumTransportModels::simplePorosityTransport::solveTransport
7171
{
7272
composition_.correct(U, theta);
7373

74-
dictionary solverDict = pmModel_.mesh().solution().solverDict("C");
74+
dictionary solverDict = pmModel_.mesh().solverDict("C");
7575
forAll(composition_.Y(), speciesi)
7676
{
7777
auto& C = composition_.Y(speciesi);

libraries/toolsGIS/eventFile/eventFile.C

+1-1
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ void Foam::eventFile::setTimeScheme(const word& dtFieldName, const fvMesh& mesh)
201201
ddtScheme_ = fv::ddtScheme<scalar>::New
202202
(
203203
mesh,
204-
mesh.schemes().ddt("ddt(" + dtFieldName + ")")
204+
mesh.ddtScheme("ddt(" + dtFieldName + ")")
205205
);
206206

207207
mesh_ = &mesh;

solvers/groundwater2DFoam/readTimeControls.H

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ if (adjustTimeStep)
6060
const bool eventTimeTracking =
6161
runTime.controlDict().lookupOrDefault("eventTimeTracking", false);
6262

63-
const dictionary& residualControl = mesh.solution().subOrEmptyDict("residualControl");
63+
const dictionary& residualControl = mesh.solutionDict().subOrEmptyDict("residualControl");
6464
const scalar residualPotential = residualControl.lookupOrDefault<scalar>("potential", 0);
6565
scalar maxResidual = GREAT;
6666
if (steady && residualPotential ==0)

solvers/groundwater2DFoam/updateForcing.H

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
//- Fixed potential values
2-
const labelUList fp_ids(fixedPotentialIDList);
3-
const scalarList fp_values(fixedPotentialValueList);
4-
if (fixedPotentialList.size() > 0) potentialEqn.setValues<List>(fp_ids, fp_values);
2+
if (fixedPotentialList.size() > 0) potentialEqn.setValues(fixedPotentialIDList, fixedPotentialValueList);
53

64
//- Seepage option
75
if (seepageActive)

solvers/groundwaterFoam/readPicardNewtonControls.H

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ Description
3333
3434
\*---------------------------------------------------------------------------*/
3535

36-
const dictionary& PicardDict = mesh.solution().subOrEmptyDict("Picard");
36+
const dictionary& PicardDict = mesh.solutionDict().subOrEmptyDict("Picard");
3737
const scalar tolerancePicard = PicardDict.lookupOrDefault<scalar>("tolerance", GREAT);
3838
label maxIterPicard = PicardDict.lookupOrDefault<label>("maxIter",10);
39-
const dictionary& NewtonDict = mesh.solution().subOrEmptyDict("Newton");
39+
const dictionary& NewtonDict = mesh.solutionDict().subOrEmptyDict("Newton");
4040
const scalar toleranceNewton = NewtonDict.lookupOrDefault<scalar>("tolerance", GREAT);
4141
const label maxIterNewton = NewtonDict.lookupOrDefault<label>("maxIter",10);
4242

solvers/groundwaterTransport2DFoam/CEqn.H

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ forAll(composition.Y(), speciesi)
2828
- fvm::Sp(seepageTerm,C)
2929
);
3030

31-
CEqn.solve(mesh.solution().solverDict("C"));
31+
CEqn.solve(mesh.solverDict("C"));
3232

3333
dtManagerC[speciesi].updateDerivatives();
3434

solvers/porousScalarTransport2DFoam/CEqn.H

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ forAll(composition.Y(), speciesi)
2424
- fvm::Sp(seepageTerm,C)
2525
);
2626

27-
CEqn.solve(mesh.solution().solverDict("C"));
27+
CEqn.solve(mesh.solverDict("C"));
2828

2929
dtManagerC[speciesi].updateDerivatives();
3030

utilities/darcyFoam/readEvent.H

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
bool sourceEventIsPresent = transportProperties.optionFound("eventFileWaterSource");
1+
bool sourceEventIsPresent = transportProperties.found("eventFileWaterSource");
22
word sourceEventFileName = transportProperties.lookupOrDefault<word>("eventFileWaterSource","");
33
sourceEventFile sourceEvent(sourceEventFileName);
44
if (sourceEventIsPresent)

0 commit comments

Comments
 (0)