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

[mesh manipulation] createPatch / cyclicGgi / OpenFoam 1.5-dev

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 16, 2010, 05:36
Default createPatch / cyclicGgi / OpenFoam 1.5-dev
  #1
OFU
New Member
 
Jennifer
Join Date: Aug 2009
Location: Germany
Posts: 28
Rep Power: 17
OFU is on a distinguished road
Hello,

for my computations I tried to make a cyclic boundary condition out of two patches on a mesh converted from Ansys Icem. The computational domain consists of a pie-shaped segment with 6 different boundary patches (top, bottom, inside, outside, theta1, theta2).

In Icem all patches are defined as a wall. After converting the Icem mesh with cfx4ToFoam to OpenFOAM I tried to make a cyclic boundary out of theta1 and theta2 with the application createPatch. After running the first time, I got the following error message:

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

Reading createPatchDict.

Using relative tolerance 0.001 to match up faces and points

Create polyMesh for time = 0

Adding new patch thetaCyclic as patch 6 from
{
type cyclic;
}


Moving faces from patch THETA2 to patch 6
Moving faces from patch THETA1 to patch 6

Doing topology modification to order faces.

face 5069 area does not match neighbour 16730 by 0.118712% -- possible face ordering problem.
patch:thetaCyclic my area:2.81518e-08 neighbour area:2.81852e-08 matching tolerance:0.001
Mesh face:1547532 vertices:4((0.154259 -0.154259 0.999947) (0.156563 -0.156563 0.999947) (0.156563 -0.156563 0.999956) (0.154259 -0.154259 0.999956))
Neighbour face:1559193 vertices:4((0.154258 0.154258 0.999947) (0.154258 0.154258 0.999956) (0.156562 0.156562 0.999956) (0.156562 0.156562 0.999947))
Rerun with cyclic debug flag set for more information.

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

FOAM exiting

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

Then I increased the matching tolerance in createPatchDict from 1e-3 to 5e-3 and ran createPatch again. Now it seemed to run without an error message. The output looks like following:

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

Reading createPatchDict.

Using relative tolerance 0.005 to match up faces and points

Create polyMesh for time = 0

Adding new patch thetaCyclic as patch 6 from
{
type cyclic;
}


Moving faces from patch THETA2 to patch 6
Moving faces from patch THETA1 to patch 6

Doing topology modification to order faces.

Dumping cycPatch.name() half0 faces to "coupled_thetaCyclic_half0.obj"
Dumping cycPatch.name() half1 faces to "coupled_thetaCyclic_half1.obj"
Dumping cyclic match as lines between face centres to "coupled_thetaCyclic_match.obj"
Synchronising points.

On coupled patch thetaCyclic forcing uniform rotation of (0.000141634 0.999987 -0.00499866 -0.9998 4.16221e-05 -0.0200023 -0.0200018 0.00500049 0.999787)
On coupled patch thetaCyclic forcing uniform rotation of 1((0.000141634 0.999987 -0.00499866 -0.9998 4.16221e-05 -0.0200023 -0.0200018 0.00500049 0.999787))
Synchronising points.
Points changed by average:0.000247481 max:0.0207689

Removing patches with no faces in them.

Removing empty patch THETA2 at position 1
Removing empty patch THETA1 at position 4
Removing patches.
Dumping cycPatch.name() half0 faces to "final_thetaCyclic_half0.obj"
Dumping cycPatch.name() half1 faces to "final_thetaCyclic_half1.obj"
Dumping cyclic match as lines between face centres to "final_thetaCyclic_match.obj"
Writing repatched mesh to 5e-06

End

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

The I copied the mesh from 5e-06 to constant/polyMesh and tried to run foamToVTK to have a look on the final mesh. But foamToVTK stops with the following error message:

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time
Create mesh for time = 0
Time: 0

face 292 and 11953 areas do not match by 0.0136987% -- possible face ordering problem#0 Foam::error:rintStack(Foam::Ostream&) in "/home/xxxx/OpenFOAM/OpenFOAM-1.6/lib/linux64GccDPOpt/libOpenFOAM.so"
#1 Foam::error::abort() in "/home/xxxx/OpenFOAM/OpenFOAM-1.6/lib/linux64GccDPOpt/libOpenFOAM.so"
#2 Foam::cyclicFvPatch::makeWeights(Foam::Field<doubl e>&) const in "/home/xxxx/OpenFOAM/OpenFOAM-1.6/lib/linux64GccDPOpt/libfiniteVolume.so"
#3 Foam::surfaceInterpolation::makeWeights() const in "/home/xxxx/OpenFOAM/OpenFOAM-1.6/lib/linux64GccDPOpt/libfiniteVolume.so"
#4 Foam::surfaceInterpolation::weights() const in "/home/xxxx/OpenFOAM/OpenFOAM-1.6/lib/linux64GccDPOpt/libfiniteVolume.so"
#5 Foam::fvPatch::weights() const in "/home/xxxx/OpenFOAM/OpenFOAM-1.6/lib/linux64GccDPOpt/libfiniteVolume.so"
#6 Foam::coupledFvPatchField<double>::evaluate(Foam:: Pstream::commsTypes) in "/home/xxxx/OpenFOAM/OpenFOAM-1.6/lib/linux64GccDPOpt/libfiniteVolume.so"
#7 Foam::cyclicFvPatchField<double>::cyclicFvPatchFie ld(Foam::fvPatch const&, Foam:imensionedField<double, Foam::volMesh> const&, Foam::dictionary const&) in "/home/xxxx/OpenFOAM/OpenFOAM-1.6/lib/linux64GccDPOpt/libfiniteVolume.so"
#8 Foam::fvPatchField<double>::adddictionaryConstruct orToTable<Foam::cyclicFvPatchField<double> >::New(Foam::fvPatch const&, Foam:imensionedField<double, Foam::volMesh> const&, Foam::dictionary const&) in "/home/xxxx/OpenFOAM/OpenFOAM-1.6/lib/linux64GccDPOpt/libfiniteVolume.so"
#9 Foam::fvPatchField<double>::New(Foam::fvPatch const&, Foam:imensionedField<double, Foam::volMesh> const&, Foam::dictionary const&) in "/home/xxxxOpenFOAM/OpenFOAM-1.6/applications/bin/linux64GccDPOpt/foamToVTK"
#10 Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>::GeometricBoundaryField::GeometricB oundaryField(Foam::fvBoundaryMesh const&, Foam:imensionedField<double, Foam::volMesh> const&, Foam::dictionary const&) in "/home/xxxx/OpenFOAM/OpenFOAM-1.6/applications/bin/linux64GccDPOpt/foamToVTK"
#11 Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>::readField(Foam::Istream&) in "/home/xxxx/OpenFOAM/OpenFOAM-1.6/applications/bin/linux64GccDPOpt/foamToVTK"
#12 Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>::GeometricField(Foam::IOobject const&, Foam::fvMesh const&) in "/home/xxxx/OpenFOAM/OpenFOAM-1.6/applications/bin/linux64GccDPOpt/foamToVTK"
#13 void Foam::readFields<Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> >(Foam::vtkMesh const&, Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>::Mesh const&, Foam::IOobjectList const&, Foam::HashSet<Foam::word, Foam::string::hash> const&, Foam::PtrList<Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> >&) in "/home/xxxx/OpenFOAM/OpenFOAM-1.6/applications/bin/linux64GccDPOpt/foamToVTK"
#14 main in "/home/xxxx/OpenFOAM/OpenFOAM-1.6/applications/bin/linux64GccDPOpt/foamToVTK"
#15 __libc_start_main in "/lib64/libc.so.6"
#16 _start at /usr/src/packages/BUILD/glibc-2.9/csu/../sysdeps/x86_64/elf/start.S:116


From function cyclicFvPatch::makeWeights(scalarField& w) const
in file fvMesh/fvPatches/constraint/cyclic/cyclicFvPatch.C at line 58.

FOAM aborting

Can anybody tell me what I did wrong and how I can solve the problems?


And the…I've got another problem. I also want to use cyclicGgi for this geometry. I read that it is only available in the xx-dev versions of OpenFoam. I only found a version OpenFOAM 1.5-dev. Is there already a 1.6-dev version? Then I also found the git repository with version 1.6.x. But the problem is, that at work under linux I don't have an internet connection, so I must download the files with windows and then copy them to my linux computer. Is there a possibility to download OpenFoam 1.6.x with a Windows system?
However, I tried to install OpenFOAM 1.5-dev on my system and by running Allwmake I got a lot of error messages like these:

/home/xxxx/OpenFOAM/OpenFOAM-1.5-dev/lib/linux64GccDPOpt/libOpenFOAM.so: undefined reference to `vtable for Foam::OPstream'
/home/xxxx/OpenFOAM/OpenFOAM-1.5-dev/lib/linux64GccDPOpt/libfiniteVolume.so: undefined reference to `Foam::OPstream::waitRequests()'
/home/xxxx/OpenFOAM/OpenFOAM-1.5-dev/lib/linux64GccDPOpt/libfiniteVolume.so: undefined reference to `Foam::OPstream::~OPstream()'
/home/xxxx/OpenFOAM/OpenFOAM-1.5-dev/lib/linux64GccDPOpt/libfiniteVolume.so: undefined reference to `Foam::IPstream::IPstream(Foam::Pstream::commsType s, int, int, Foam::IOstream::streamFormat, Foam::IOstream::versionNumber)'
/home/xxxx/OpenFOAM/OpenFOAM-1.5-dev/lib/linux64GccDPOpt/libOpenFOAM.so: undefined reference to `Foam::Pstream::exit(int)'
/home/xxxx/OpenFOAM/OpenFOAM-1.5-dev/lib/linux64GccDPOpt/libfiniteVolume.so: undefined reference to `Foam::IPstream::waitRequests()'
/home/xxxx/OpenFOAM/OpenFOAM-1.5-dev/lib/linux64GccDPOpt/libOpenFOAM.so: undefined reference to `Foam::Pstream::abort()'
/home/xxxx/OpenFOAM/OpenFOAM-1.5-dev/lib/linux64GccDPOpt/libfiniteVolume.so: undefined reference to `Foam::reduce(double&, Foam::sumOp<double> const&)'
/home/xxxx/OpenFOAM/OpenFOAM-1.5-dev/lib/linux64GccDPOpt/libOpenFOAM.so: undefined reference to `Foam::Pstream::init(int&, char**&)'
/home/xxxx/OpenFOAM/OpenFOAM-1.5-dev/lib/linux64GccDPOpt/libOpenFOAM.so: undefined reference to `Foam::Pstream::addValidParOptions(Foam::HashTable <Foam::string, Foam::word, Foam::string::hash>&)'
collect2: ld returned 1 exit status
make[3]: *** [/home/xxxx/OpenFOAM/OpenFOAM-1.5-dev/applications/bin/linux64GccDPOpt/solidStress] Error 1
make[2]: *** [solidStress] Error 2
make[2]: Target `application' not remade because of errors.
make[1]: *** [stressField] Error 2
/usr/bin/ld: warning: libPstream.so, needed by /home/xxxx/OpenFOAM/OpenFOAM-1.5-dev/lib/linux64GccDPOpt/libOpenFOAM.so, not found (try using -rpath or -rpath-link)

Therefore the directory /OpenFOAM/OpenFOAM-1.5-dev/applications/bin/linux64GccDPOpt/ is empty and foamInstallationTest says:

icoFoam
WARNING: Conflicting installations:
OpenFOAM settings : /home/xxxx/OpenFOAM/OpenFOAM-1.5-dev/applications/bin/linux64GccDPOpt/icoFoam
current path :
CRITICAL ERROR

I don't know how to solve this problem, because I could install OpenFOAM 1.5 and 1.6 without problems.

Does anybody know a answer to my question?

Thanks
Jennifer

Last edited by OFU; June 17, 2010 at 09:36.
OFU 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
Frequently Asked Questions about Installing OpenFOAM wyldckat OpenFOAM Installation 3 November 14, 2023 12:58
inlet pressure is higher than outlet pressure for fan sivakumar OpenFOAM Pre-Processing 16 December 30, 2017 15:16
How to contribute to the community of OpenFOAM users and to the OpenFOAM technology wyldckat OpenFOAM 17 November 10, 2017 16:54
OpenFOAM v3.0+ ?? SBusch OpenFOAM 22 December 26, 2016 15:24
OpenFOAM Version 1.5 Released OpenFOAM discussion board administrator OpenFOAM Announcements from ESI-OpenCFD 0 July 14, 2008 19:22


All times are GMT -4. The time now is 10:58.