CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM (http://www.cfd-online.com/Forums/openfoam/)
-   -   problem with BC cylindricalInletVelocity (http://www.cfd-online.com/Forums/openfoam/97555-problem-bc-cylindricalinletvelocity.html)

galogen February 20, 2012 09:57

problem with BC cylindricalInletVelocity
 
Hi all !
I'm new to OpenFOAM and I'm trying to use the cylindricalInletVelocity boundary condition to specify the swirl flow in the tube.

inlet
{
type cylindricalInletVelocity;
axis (0 0 1);
centre (0 0 0);
axialVelocity 0.1;
rpm 6;
radialVelocity 0;
value uniform (0 0 0);
}

but I get the error below

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Create mesh for time = 0

Reading field p

Reading field U

Reading/calculating face flux field phi

Selecting incompressible transport model Newtonian
Selecting RAS turbulence model kEpsilon
kEpsilonCoeffs
{
Cmu 0.09;
C1 1.44;
C2 1.92;
sigmaEps 1.3;
}

No field sources present


SIMPLE: convergence criteria
field p tolerance 0.01
field U tolerance 0.001
field "(k|epsilon|omega)" tolerance 0.001


Starting time loop

Time = 1



--> FOAM FATAL ERROR:
attempted copy of a deallocated temporary

From function Foam::tmp<T>::tmp(const tmp<T>&)
in file /OpenFOAM/OpenFOAM-2.1.0/src/OpenFOAM/lnInclude/tmpI.H at line 63.

FOAM aborting

#0 Foam::error::printStack(Foam::Ostream&) in "/OpenFOAM/OpenFOAM-2.1.0/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
#1 Foam::error::abort() in "/OpenFOAM/OpenFOAM-2.1.0/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
#2 Foam::cylindricalInletVelocityFvPatchVectorField:: updateCoeffs() in "/OpenFOAM/OpenFOAM-2.1.0/platforms/linux64GccDPOpt/lib/libfiniteVolume.so"
#3 Foam::fvMatrix<Foam::Vector<double> >::fvMatrix(Foam::GeometricField<Foam::Vector<doub le>, Foam::fvPatchField, Foam::volMesh> const&, Foam::dimensionSet const&) in "/OpenFOAM/OpenFOAM-2.1.0/platforms/linux64GccDPOpt/bin/simpleFoam"
#4
at simpleFoam.C:0
#5
in "/OpenFOAM/OpenFOAM-2.1.0/platforms/linux64GccDPOpt/bin/simpleFoam"
#6 __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6"
#7
in "/OpenFOAM/OpenFOAM-2.1.0/platforms/linux64GccDPOpt/bin/simpleFoam"
Aborted


Thanks in advance for any help.

AxelB March 14, 2012 04:35

Hey galogen,..

i got the same problem.

Have you found any solutions for the problem up to now?


Axel

calim_cfd March 14, 2012 08:59

Hi!

have you guys tried to change the input values?

Code:

{
        type            cylindricalInletVelocity;
        axis            (0 0 1);
        centre          (0 0 0);
        axialVelocity  0.1;
        rpm            6;
        radialVelocity  0;
        value          uniform (0 0 0);
    }

plus, there's no point in using this BC if you're setting the radialVelocity to 0??

also make sure everything follows the RHR so you won't get problems with signs, and ensure your centre and axis are properly positioned

GL!

AxelB March 16, 2012 02:57

hi calim

i changed the input values but i get always the same error. this is my Ua inlet code. the solver is bubbleFoam.

Code:

inlet                   
    {
    type            cylindricalInletVelocity;
    axis        (0 1 0);
    centre        (-0.14015 0.28175 0.135);
    axialVelocity    0;
    rpm        0;
    radialVelocity    0.24;
    value          uniform (0 0 0);
    }

im not sure about the centre vector... but i get the same error while set the vector to (0 0 0)


Axel

galogen March 16, 2012 05:06

Hi Axel. I still can't solve this problem. So while I don't need to set radial velocity I use
swirlFlowRateInletVelocity. If you find somthing, please post it.

galogen March 16, 2012 05:34

Hi Calim,

Do you know what does it mean:

"attempted copy of a deallocated temporary" ?

Did you tried to use this BC? If it worked, could you post the example of working BC settings?

AxelB March 16, 2012 07:06

hi

i solved my problem with another patch type.

my task was ist, to realize only a radial flow out of e cylindric patch. virtually a normal velocity to the patch surface.

i realized it with the following type

Code:

    inlet
    {
    type            surfaceNormalFixedValue;
    refValue          uniform -0.24;
    }

Axel

calim_cfd March 16, 2012 07:38

by trying it out and searching through the forums i guess it might be actually a BUG (cylindricalvelocityinlet)! unfortunately i do not have the time to dig deeper.. i've tried a few changes but i got the same error.;. if i find sth new i'll let you know..

ty and sry

galogen March 21, 2012 09:17

Yes, it's really looks like BUG. So thanks you Axel and Calim for your answers and your time!

Best wishes!

alireza_manu April 26, 2012 11:19

cylindricalInletVelocity problem!!!!
 
hi all
anybody find a solution for cylindricalInletVelocity?
It doesn't work at all!!!!!!

it apears in the terminal:

--> FOAM FATAL ERROR:
attempted copy of a deallocated temporary

From function Foam::tmp<T>::tmp(const tmp<T>&)
in file /home/opencfd/OpenFOAM/OpenFOAM-2.1.0/src/OpenFOAM/lnInclude/tmpI.H at line 63.

FOAM aborting

#0 Foam::error::printStack(Foam::Ostream&) in "/opt/openfoam210/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
#1 Foam::error::abort() in "/opt/openfoam210/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
#2 Foam::tmp<Foam::Field<Foam::Vector<double> > > Foam::operator*<Foam::Vector<double> >(double const&, Foam::tmp<Foam::Field<Foam::Vector<double> > > const&) in "/opt/openfoam210/platforms/linux64GccDPOpt/lib/libfiniteVolume.so"
#3 Foam::cylindricalInletVelocityFvPatchVectorField:: updateCoeffs() in "/opt/openfoam210/platforms/linux64GccDPOpt/lib/libfiniteVolume.so"
#4 Foam::fvMatrix<Foam::Vector<double> >::fvMatrix(Foam::GeometricField<Foam::Vector<doub le>, Foam::fvPatchField, Foam::volMesh> const&, Foam::dimensionSet const&) in "/opt/openfoam210/platforms/linux64GccDPOpt/bin/simpleFoam"
#5
in "/opt/openfoam210/platforms/linux64GccDPOpt/bin/simpleFoam"
#6
in "/opt/openfoam210/platforms/linux64GccDPOpt/bin/simpleFoam"
#7 __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6"
#8
in "/opt/openfoam210/platforms/linux64GccDPOpt/bin/simpleFoam"
Aborted

Nolwenn January 15, 2013 06:54

Hello everybody,

I have the same problem, did you find something interesting ?

Best regards.


All times are GMT -4. The time now is 19:12.