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

splitMeshRegions

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 5, 2009, 10:52
Default splitMeshRegions
  #1
New Member
 
Donghyup
Join Date: Apr 2009
Posts: 2
Rep Power: 0
naltang is on a distinguished road
Is there anybody who knows the command of "splitMeshRegions"? It has many options: [-cellZones] [-blockedFaces faceSet] [-overwrite] [-insidePoint point] [-case dir] [-parallel] [-largestOnly] [-mapfile] [-makeCellZones] [-help] [-doc] [-srcDoc], but I faild to find the usage. Please help me out understanding the meanig of each options.

Actually, I am going to split some region. If I use -cellZones, it splits all the regions. Please let me know how to split certain cellZones (not all).
naltang is offline   Reply With Quote

Old   September 1, 2009, 06:36
Default
  #2
Member
 
Petri Sulasalmi
Join Date: Jul 2009
Location: Finland
Posts: 32
Rep Power: 17
PetSul is on a distinguished road
What does this command do anyway? Does it split/reforms an existing mesh?

I was trying to build a case based on multiRegionHeater -tutorial. I made the geometry and meshed it using Gambit, then exported it to .msh-file. Then I put it to openfoam, the mesh conversion worked nicely, also meshCheck went ok.

Then I defined needed properties in 0-directory and tried to run splitMeshRegions and it just doesn't work. This is what it outputs

Create time

Create mesh for time = 0


Number of regions:2

Writing region per cell file (for manual decomposition) to
"/home/petri/OpenFOAM/petri-1.6/run/tutorials/heatTransfer/chtMultiRegionFoam/metso/constant/cellToRegion"

Writing region per cell as volScalarField to
"/home/petri/OpenFOAM/petri-1.6/run/tutorials/heatTransfer/chtMultiRegionFoam/metso/constant/cellToRegion"

Region Cells
------ -----
0 12532
1 7020

Trying to match regions to existing cell zones.

Region Zone Name
------ ---- ----
0 0 litku
1 1 palikka

Sizes inbetween regions:

Region Region Faces
------ ------ -----

Reading volScalarField K
Reading volScalarField rho
Reading volScalarField p
Reading volScalarField T
Reading volScalarField k
Reading volScalarField cp
Reading volScalarField epsilon
Reading volVectorField U


Adding patches


Adding patches


Region 0
--------
Creating mesh for region 0 litku
Testing:"/home/petri/OpenFOAM/petri-1.6/run/tutorials/heatTransfer/chtMultiRegionFoam/metso/system/litku/fvSchemes"
Writing dummy "litku/fvSchemes"
Writing dummy "litku/fvSolution"
Mapping fields
Mapping field rho
Mapping field k
Mapping field cp
Mapping field K
Mapping field p
Mapping field T
Mapping field epsilon
Mapping field U
Mapping field S


Not implemented#0 Foam::error: printStack(Foam::Ostream&) in
"/usr/local/OpenFOAM/OpenFOAM-1.6/lib/linux64GccDPOpt/libOpenFOAM.so"
#1 Foam::error::abort() in
"/usr/local/OpenFOAM/OpenFOAM-1.6/lib/linux64GccDPOpt/libOpenFOAM.so"
#2 Foam::slicedFvsPatchField<Foam::Vector<double>
::slicedFvsPatchField(Foam::slicedFvsPatchField<Fo am::Vector<double> > const&,

Foam::fvPatch const&, Foam: dimensionedField<Foam::Vector<double>, Foam::surfaceMesh> const&, Foam::fvPatchFieldMapper const&) in
"/usr/local/OpenFOAM/OpenFOAM-1.6/lib/linux64GccDPOpt/libfiniteVolume.so"
#3 Foam::fvsPatchField<Foam::Vector<double>
::addpatchMapperConstructorToTable<Foam::slicedFvs PatchField<Foam::Vector<double> >
::New(Foam::fvsPatchField<Foam::Vector<double> > const&, Foam::fvPatch const&,

Foam: dimensionedField<Foam::Vector<double>, Foam::surfaceMesh> const&, Foam::fvPatchFieldMapper const&) in
"/usr/local/OpenFOAM/OpenFOAM-1.6/lib/linux64GccDPOpt/libfiniteVolume.so"
#4 Foam::fvsPatchField<Foam::Vector<double>
::New(Foam::fvsPatchField<Foam::Vector<double> > const&, Foam::fvPatch const&,

Foam: dimensionedField<Foam::Vector<double>, Foam::surfaceMesh> const&, Foam::fvPatchFieldMapper const&) in
"/usr/local/OpenFOAM/OpenFOAM-1.6/applications/bin/linux64GccDPOpt/splitMeshRegions"
#5 Foam::tmp<Foam::GeometricField<Foam::Vector<double >, Foam::fvsPatchField,
Foam::surfaceMesh> > Foam::fvMeshSubset::interpolate<Foam::Vector<doubl e>
(Foam::GeometricField<Foam::Vector<double>, Foam::fvsPatchField, Foam::surfaceMesh>

const&, Foam::fvMesh const&, Foam::List<int> const&, Foam::List<int> const&) in "/usr/local/OpenFOAM/OpenFOAM-1.6/applications/bin/linux64GccDPOpt/splitMeshRegions"
#6 void subsetSurfaceFields<Foam::GeometricField<Foam::Vec tor<double>,
Foam::fvsPatchField, Foam::surfaceMesh> >(Foam::fvMesh const&, Foam::fvMesh const&,
Foam::List<int> const&) in
"/usr/local/OpenFOAM/OpenFOAM-1.6/applications/bin/linux64GccDPOpt/splitMeshRegions"
#7 createAndWriteRegion(Foam::fvMesh const&, Foam::regionSplit const&,
Foam::List<Foam::word> const&, Foam::EdgeMap<int> const&, int, Foam::word const&) in
"/usr/local/OpenFOAM/OpenFOAM-1.6/applications/bin/linux64GccDPOpt/splitMeshRegions"
#8 main in
"/usr/local/OpenFOAM/OpenFOAM-1.6/applications/bin/linux64GccDPOpt/splitMeshRegions"
#9 __libc_start_main in "/lib64/libc.so.6"
#10 Foam::regIOobject::writeObject(Foam::IOstream::str eamFormat,
Foam::IOstream::versionNumber, Foam::IOstream::compressionType) const in
"/usr/local/OpenFOAM/OpenFOAM-1.6/applications/bin/linux64GccDPOpt/splitMeshRegions"


From function slicedFvsPatchField<Type>::slicedFvsPatchField(con st
slicedFvsPatchField<Type>&, const fvPatch&, const Field<Type>&, const fvPatchFieldMapper&)
in file fields/fvsPatchFields/basic/sliced/slicedFvsPatchField.C at line 78.

FOAM aborting

Aborted

I have a solid part and a fluid part defined and meshed in Gambit. So do I even need to use splitMeshRegions -command?

Regards,

Petri
PetSul is offline   Reply With Quote

Old   September 1, 2009, 17:59
Default
  #3
Senior Member
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26
mattijs is on a distinguished road
Your mesh consists of two disconnected regions. splitMeshRegions will write each of these to a separate region directory. It should not fail. Do you have a testcase you can post to the OpenFOAM-bugs section of the forum?
mattijs is offline   Reply With Quote

Old   May 6, 2010, 13:22
Default Mapping field S
  #4
mik
Member
 
Michea Ferrari
Join Date: Mar 2010
Location: Switzerland
Posts: 30
Rep Power: 16
mik is on a distinguished road
Hi all,

I have a problem running splitMeshRegions for a case that I have created changing file of the tutorial chtMultiRegion in the chtMultiRegionFoam directory:

Typing splitMeshRegions -cellZones work fine until it began to Maps fields for the first Region (Region 0)
It maps correctly the following fields:
K, rho, p, T, k, cp, epsilon, U
but it searches also another nonexistent field that it calls 'S' and there occour the error:

Code:
Mapping field S
terminate called after throwing an instance of 'std::bad_cast'
  what():  std::bad_cast
Aborted
I have imported the Mesh (made with ANSYS ICEM CFX and than exported in .msh) with the command:

Code:
fluent3DMeshToFoam
and the checkMesh says: Mesh OK

Is it possible that is a mesh-importation Problem ?
Is the importation method: fluent3DMeshToFoam the best method to import a Mesh?

Can someone Please help me?

Thank you

Cheers

Mik
mik 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



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