CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

--> FOAM FATAL ERROR: invalid path specification

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 2, 2018, 10:22
Default --> FOAM FATAL ERROR: invalid path specification
  #1
Senior Member
 
Przemek
Join Date: Jun 2011
Posts: 249
Rep Power: 16
gaza is on a distinguished road
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
The 100 catalogue was written but I cannot restart the simulation
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
Does anybody know what is going on?
__________________
best regards
pblasiak
gaza is offline   Reply With Quote

Old   October 4, 2018, 06:11
Default
  #2
Senior Member
 
Przemek
Join Date: Jun 2011
Posts: 249
Rep Power: 16
gaza is on a distinguished road
when I changed 290 dir into 0 via
Code:
mv 290 0
it works now
but why????
__________________
best regards
pblasiak
gaza is offline   Reply With Quote

Old   December 7, 2018, 06:36
Default
  #3
Senior Member
 
Przemek
Join Date: Jun 2011
Posts: 249
Rep Power: 16
gaza is on a distinguished road
Quote:
Originally Posted by gaza View Post
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
The 100 catalogue was written but I cannot restart the simulation
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
Does anybody know what is going on?

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
gaza is offline   Reply With Quote

Old   March 10, 2020, 12:53
Default
  #4
Senior Member
 
Przemek
Join Date: Jun 2011
Posts: 249
Rep Power: 16
gaza is on a distinguished road
Hi
I have once again problem with tmp object.
Now the problem line is
Code:
tmp<volScalarField> tGMpGrest
    (
        superFluid->GM()/rho/cp 
    );
rho and cp are volScalarFields
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
               )
        );
}
where B_, magG_, rhon_, rhos_ are volScalarFields
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.
I tried to change GM() according to this

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;     

}
so I applied this
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;

}
however it did not help


Can anybody have some advice?
__________________
best regards
pblasiak
gaza is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 03:25.