|
[Sponsors] | |||||
--> FOAM FATAL ERROR: invalid path specification |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|
|
#1 |
|
Senior Member
Przemek
Join Date: Jun 2011
Posts: 249
Rep Power: 17 ![]() |
Hi All,
I am using OF v1612 and previous calculations were stopped by the solver during the write at 100 s: Code:
Time = 100
Courant Number mean: 0.00949898 max: 0.0999998
deltaT = 0.00030688
PIMPLE: iteration 1
smoothSolver: Solving for Ux, Initial residual = 8.36789e-05, Final residual = 4.06971e-17, No Iterations 5
smoothSolver: Solving for Uy, Initial residual = 2.64402e-05, Final residual = 4.01883e-17, No Iterations 5
smoothSolver: Solving for T, Initial residual = 9.13109e-09, Final residual = 7.86405e-09, No Iterations 5
HeliumConstRho updates thermal properties...
Updating G, magG and B...
min/max(T) = 1.95, 1.95397
GAMG: Solving for p, Initial residual = 4.87185e-07, Final residual = 6.67495e-09, No Iterations 5
GAMG: Solving for p, Initial residual = 6.6887e-09, Final residual = 1.18949e-10, No Iterations 5
time step continuity errors : sum local = 3.43234e-14, global = 1.20386e-21, cumulative = 2.39346e-19
--> FOAM Warning :
From function static bool Foam::IOobject::fileNameComponents(const Foam::fileName&, Foam::fileName&, Foam::fileName&, Foam::word&)
in file db/IOobject/IOobject.C at line 131
called with directory: "100"
--> FOAM FATAL ERROR:
invalid path specification
From function Foam::IOobject::IOobject(const Foam::fileName&, const Foam::objectRegistry&, Foam::IOobject::readOption, Foam::IOobject::writeOption, bool, bool)
in file db/IOobject/IOobject.C at line 279.
FOAM exiting
and I started from 90 s. Also I change writeInterval to 200. Now at 290 s I got the same as at the 90 s. I am trying to start from 290 s (which is written) but I get this Code:
Time = 290
Courant Number mean: 3.33408e-09 max: 3.34072e-08
deltaT = 1.2e-10
PIMPLE: iteration 1
smoothSolver: Solving for Ux, Initial residual = 2.32946e-10, Final residual = 4.085e-17, No Iterations 5
smoothSolver: Solving for Uy, Initial residual = 3.60056e-09, Final residual = 4.02081e-17, No Iterations 5
smoothSolver: Solving for T, Initial residual = 4.09535e-06, Final residual = 6.28013e-14, No Iterations 5
HeliumConstRho updates thermal properties...
Updating G, magG and B...
min/max(T) = 1.95, 1.95397
GAMG: Solving for p, Initial residual = 0.997946, Final residual = 6.70672e-08, No Iterations 36
GAMG: Solving for p, Initial residual = 3.14035e-08, Final residual = 1.16862e-08, No Iterations 5
time step continuity errors : sum local = 5.38063e-22, global = -1.58036e-28, cumulative = -1.58036e-28
--> FOAM Warning :
From function static bool Foam::IOobject::fileNameComponents(const Foam::fileName&, Foam::fileName&, Foam::fileName&, Foam::word&)
in file db/IOobject/IOobject.C at line 131
called with directory: "290"
--> FOAM FATAL ERROR:
invalid path specification
From function Foam::IOobject::IOobject(const Foam::fileName&, const Foam::objectRegistry&, Foam::IOobject::readOption, Foam::IOobject::writeOption, bool, bool)
in file db/IOobject/IOobject.C at line 279.
FOAM exiting
__________________
best regards pblasiak |
|
|
|
|
|
|
|
|
#2 |
|
Senior Member
Przemek
Join Date: Jun 2011
Posts: 249
Rep Power: 17 ![]() |
when I changed 290 dir into 0 via
Code:
mv 290 0 but why????
__________________
best regards pblasiak |
|
|
|
|
|
|
|
|
#3 | |
|
Senior Member
Przemek
Join Date: Jun 2011
Posts: 249
Rep Power: 17 ![]() |
Quote:
OK I found the reason of the error. I had in the code (inside function that returns Pair<tmp<volScalarField> > object) this piece of code: Code:
{
mCondDotP_ = -mCoeff_*min(T_ - TSat_,T0);
mEvapDotP_ = -mCoeff_*max(T_ - TSat_,T0);
tmp<volScalarField> tmCondDotP
(
new volScalarField
(
IOobject
(
U_.time().timeName(),
U_.db(),
IOobject::NO_READ,
IOobject::NO_WRITE
),
mCondDotP_
)
);
tmp<volScalarField> tmEvapDotP
(
new volScalarField
(
IOobject
(
U_.time().timeName(),
U_.db(),
IOobject::NO_READ,
IOobject::NO_WRITE
),
mEvapDotP_
)
);
return Pair<tmp<volScalarField> >
(
tmCondDotP,
tmEvapDotP
);
}
I changed this into Code:
{
return Pair<tmp<volScalarField> >
(
-mCoeff_*min(T_ - TSat_,T0), -mCoeff_*max(T_ - TSat_,T0)
);
}
and now it works well.
__________________
best regards pblasiak |
||
|
|
|
||
|
|
|
#4 |
|
Senior Member
Przemek
Join Date: Jun 2011
Posts: 249
Rep Power: 17 ![]() |
Hi
I have once again problem with tmp object. Now the problem line is Code:
tmp<volScalarField> tGMpGrest
(
superFluid->GM()/rho/cp
);
GM() function is defined as follow Code:
Foam::tmp<Foam::volScalarField> Foam::myClass::GM() const
{
if (GM_)
{
return
(
viscosityModelPtr_->AGM()*rhon_*rhos_*
pow
(
max
(
B_*magG_,
dimensionedScalar("small", dimensionSet(0,1,-1,0,0,0,0), SMALL)
),
4.0
)
);
}
and viscosityModelPtr_->AGM() returns volScalarFields my question is: Is it proper way of returning tmp object in GM()? Or Am I doing something wrong? because I get error: Code:
Time = 2.2
Courant Number mean: 0.00017481894698672 max: 0.00069651797368032
PIMPLE: iteration 1
smoothSolver: Solving for Ux, Initial residual = 0.00014181233747096, Final residual = 3.7125624884409e-17, No Iterations 5
smoothSolver: Solving for Uy, Initial residual = 0.0026592937137461, Final residual = 3.9760413783569e-17, No Iterations 5
--> FOAM Warning :
From function static bool Foam::IOobject::fileNameComponents(const Foam::fileName&, Foam::fileName&, Foam::fileName&, Foam::word&)
in file db/IOobject/IOobject.C at line 131
called with directory: "2.2"
--> FOAM FATAL ERROR:
invalid path specification
From function Foam::IOobject::IOobject(const Foam::fileName&, const Foam::objectRegistry&, Foam::IOobject::readOption, Foam::IOobject::writeOption, bool, bool)
in file db/IOobject/IOobject.C at line 279.
https://openfoamwiki.net/index.php/O..._you_use_it.3F where we see Code:
tmp<largeClass> myFunc()
{
tmp<largeClass> tReturnMe(new largeClass);
largeClass& returnMe = tReturnMe();
// Somehow fill the data in returnMe
return tReturnMe;
}
Code:
Foam::tmp<Foam::volScalarField> Foam::myClass::GM() const
{
if (GM_)
{
tmp<volScalarField> tReturnMe
(
viscosityModelPtr_->AGM()*rhon_*rhos_*
pow
(
max
(
B_*magG_,
dimensionedScalar("small", dimensionSet(0,1,-1,0,0,0,0), SMALL)
),
4.0
)
);
return tReturnMe;
}
Can anybody have some advice?
__________________
best regards pblasiak |
|
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| whats the cause of error? | immortality | OpenFOAM Running, Solving & CFD | 13 | March 24, 2021 08:15 |
| Fatal error: invalid wall function specification | kcc49 | OpenFOAM Running, Solving & CFD | 13 | September 26, 2018 05:07 |
| simpleFoam parallel | AndrewMortimer | OpenFOAM Running, Solving & CFD | 12 | August 7, 2015 19:45 |
| OpenFOAM on MinGW crosscompiler hosted on Linux | allenzhao | OpenFOAM Installation | 127 | January 30, 2009 20:08 |
| error while compiling the USER Sub routine | CFD user | CFX | 3 | November 25, 2002 16:16 |