CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Meshing & Mesh Conversion (https://www.cfd-online.com/Forums/openfoam-meshing/)
-   -   [Netgen] Same mesh on inlet and outlet (https://www.cfd-online.com/Forums/openfoam-meshing/61944-same-mesh-inlet-outlet.html)

henning November 21, 2008 03:18

Same mesh on inlet and outlet
 
Hi everyone!

I want to make a channelOodle case with a pipe generated in netgen (tet mesh). Converting is not a problem (except patch 0 has 0 faces so I just deleded it) but when I run the channelOodles command I get:

Attempt to cast type patch to type lduInterface#0 Foam::error::printStack(Foam:http://www.cfd-online.com/OpenFOAM_D...part/proud.gifstream&) in "/home/fs/OpenFOAM/OpenFOAM-1.5/lib/linux64GccDPOpt/libOpenFOAM.so"
#1 Foam::error::abort() in "/home/fs/OpenFOAM/OpenFOAM-1.5/lib/linux64GccDPOpt/libOpenFOAM.so"
#2 Foam:http://www.cfd-online.com/OpenFOAM_D...part/proud.gifstream& Foam::operator<<>(Foam:http://www.cfd-online.com/OpenFOAM_D...part/proud.gifstream&, Foam::errorManip<foam::error>) in "/home/fs/OpenFOAM/OpenFOAM-1.5/applications/bin/linux64GccDPOpt/channelOodles"
#3 Foam::lduInterface const& Foam::refCast<foam::lduinterface>(Foam::fvPatch const&) in "/home/fs/OpenFOAM/OpenFOAM-1.5/lib/linux64GccDPOpt/libfiniteVolume.so"
#4 Foam::cyclicFvPatchField<double>::cyclicFvPatchFie ld(Foam::fvPatch const&, Foam::DimensionedField<double,> const&, Foam::dictionary const&) in "/home/fs/OpenFOAM/OpenFOAM-1.5/lib/linux64GccDPOpt/libfiniteVolume.so"
#5 Foam::fvPatchField<double>::adddictionaryConstruct orToTable<foam::cyclicfvpatchf ield<double> >::New(Foam::fvPatch const&, Foam::DimensionedField<double,> const&, Foam::dictionary const&) in "/home/fs/OpenFOAM/OpenFOAM-1.5/lib/linux64GccDPOpt/libfiniteVolume.so"
#6 Foam::fvPatchField<double>::New(Foam::fvPatch const&, Foam::DimensionedField<double,> const&, Foam::dictionary const&) in "/home/fs/OpenFOAM/OpenFOAM-1.5/applications/bin/linux64GccDPOpt/channelOodles"
#7 Foam::GeometricField<double,>::GeometricBoundaryFi eld::GeometricBoundaryField(Fo am::fvBoundaryMesh const&, Foam::DimensionedField<double,> const&, Foam::dictionary const&) in "/home/fs/OpenFOAM/OpenFOAM-1.5/applications/bin/linux64GccDPOpt/channelOodles"
#8 Foam::GeometricField<double,>::readField(Foam::Ist ream&) in "/home/fs/OpenFOAM/OpenFOAM-1.5/applications/bin/linux64GccDPOpt/channelOodles"
#9 Foam::GeometricField<double,>::GeometricField(Foam ::IOobject const&, Foam::fvMesh const&) in "/home/fs/OpenFOAM/OpenFOAM-1.5/applications/bin/linux64GccDPOpt/channelOodles"
#10 main in "/home/fs/OpenFOAM/OpenFOAM-1.5/applications/bin/linux64GccDPOpt/channelOodles"
#11 __libc_start_main in "/lib64/libc.so.6"
#12 __gxx_personality_v0 in "/home/fs/OpenFOAM/OpenFOAM-1.5/applications/bin/linux64GccDPOpt/channelOodles"


From function refCast<to>(From&)
in file /home/fs/OpenFOAM/OpenFOAM-1.5/src/OpenFOAM/lnInclude/typeInfo.H at line 106.

FOAM aborting

Aborted





I assume it's because inlet (patch2) and outlet (patch3) don't have the same mesh on the surface.
So my question is: How to solve this problem? Maybe create the same mesh on in- and outlet? But how?

Thanks for your help

Henning =)

henning November 27, 2008 09:53

OK, I tried it in a different
 
OK, I tried it in a different way and now inlet and outlet are the same patch but dont have faces that directly blong to another and I get this:


face 0 area does not match neighbour 6912 by 1.62797% -- possible face ordering problem.
patch:inout my area:4.24561e-06 neighbour area:4.17705e-06 matching tolerance:0.001
Mesh face:1255168 vertices:3((0 0.044188 -0.086535) (0 0.046249 -0.088662) (0 0.043565 -0.090012))
Neighbour face:1262080 vertices:3((0.1 0.044152 0.086605) (0.1 0.046263 0.088655) (0.1 0.043578 0.090005))
Rerun with cyclic debug flag set for more information.

From function cyclicPolyPatch::calcTransforms()
in file meshes/polyMesh/polyPatches/constraint/cyclic/cyclicPolyPatch.C at line 150.

FOAM exiting



Any suggestions on that would be great =)

Henning

vijayakumar January 16, 2009 03:36

i am new to openfoam. i need t
 
i am new to openfoam. i need to solve a simple methane combustion problem............ which solver is bettter for combustion(XIFOAM, XOODELS so many is there) and please give me few guidelines to solve a combustion problem...

henning January 16, 2009 04:39

Personally I would use XiFoam
 
Personally I would use XiFoam for a first try and compare it to experimental results to see if it fits your needs. LES is a bit more realistic but also needs more time to be solved.
But I am quite new to CFD myself so be careful with that advice =)


All times are GMT -4. The time now is 07:18.