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

problem with BC cylindricalInletVelocity

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 20, 2012, 09:57
Default problem with BC cylindricalInletVelocity
  #1
New Member
 
Vladimir
Join Date: Feb 2012
Posts: 6
Rep Power: 14
galogen is on a distinguished road
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:rintStack(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.
galogen is offline   Reply With Quote

Old   March 14, 2012, 04:35
Default
  #2
New Member
 
Join Date: Sep 2011
Posts: 5
Rep Power: 15
AxelB is on a distinguished road
Hey galogen,..

i got the same problem.

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


Axel
AxelB is offline   Reply With Quote

Old   March 14, 2012, 08:59
Default
  #3
Senior Member
 
calim_cfd's Avatar
 
mauricio
Join Date: Jun 2011
Posts: 172
Rep Power: 18
calim_cfd is on a distinguished road
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!
__________________
Best Regards
/calim

"Elune will grant us the strength"
calim_cfd is offline   Reply With Quote

Old   March 16, 2012, 02:57
Default
  #4
New Member
 
Join Date: Sep 2011
Posts: 5
Rep Power: 15
AxelB is on a distinguished road
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
AxelB is offline   Reply With Quote

Old   March 16, 2012, 05:06
Default
  #5
New Member
 
Vladimir
Join Date: Feb 2012
Posts: 6
Rep Power: 14
galogen is on a distinguished road
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 is offline   Reply With Quote

Old   March 16, 2012, 05:34
Default
  #6
New Member
 
Vladimir
Join Date: Feb 2012
Posts: 6
Rep Power: 14
galogen is on a distinguished road
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?
galogen is offline   Reply With Quote

Old   March 16, 2012, 07:06
Default
  #7
New Member
 
Join Date: Sep 2011
Posts: 5
Rep Power: 15
AxelB is on a distinguished road
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
AxelB is offline   Reply With Quote

Old   March 16, 2012, 07:38
Default
  #8
Senior Member
 
calim_cfd's Avatar
 
mauricio
Join Date: Jun 2011
Posts: 172
Rep Power: 18
calim_cfd is on a distinguished road
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
__________________
Best Regards
/calim

"Elune will grant us the strength"
calim_cfd is offline   Reply With Quote

Old   March 21, 2012, 09:17
Default
  #9
New Member
 
Vladimir
Join Date: Feb 2012
Posts: 6
Rep Power: 14
galogen is on a distinguished road
Yes, it's really looks like BUG. So thanks you Axel and Calim for your answers and your time!

Best wishes!
galogen is offline   Reply With Quote

Old   April 26, 2012, 12:19
Unhappy cylindricalInletVelocity problem!!!!
  #10
New Member
 
Join Date: Apr 2012
Posts: 1
Rep Power: 0
alireza_manu is on a distinguished road
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:rintStack(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:perator*<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
alireza_manu is offline   Reply With Quote

Old   January 15, 2013, 06:54
Default
  #11
New Member
 
Nolwenn
Join Date: Apr 2010
Posts: 26
Rep Power: 16
Nolwenn is on a distinguished road
Hello everybody,

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

Best regards.
Nolwenn 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
UDF compiling problem Wouter Fluent UDF and Scheme Programming 6 June 6, 2012 05:43
Gambit - meshing over airfoil wrapping (?) problem JFDC FLUENT 1 July 11, 2011 06:59
natural convection problem for a CHT problem Se-Hee CFX 2 June 10, 2007 07:29
Adiabatic and Rotating wall (Convection problem) ParodDav CFX 5 April 29, 2007 20:13
Is this problem well posed? Thomas P. Abraham Main CFD Forum 5 September 8, 1999 15:52


All times are GMT -4. The time now is 01:38.