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

Use of topoSet for creating porous volume

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 2, 2016, 02:54
Default Use of topoSet for creating porous volume
  #1
New Member
 
Andeo
Join Date: Jun 2010
Location: Pune, India
Posts: 12
Rep Power: 16
Anirudh_Deodhar is on a distinguished road
Hi..I am trying to use topoSet for creating a porous cell zone named v_porous. I converted fluent mesh into openfoam mesh. my topoSetDict file looks like this -

/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.2.1 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "system";
object topoSetDict;
}

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

actions
(

// Load initial cellSet
{
name v_porous;
type cellSet;
action new;


source boxToCell;
sourceInfo
boxes
{
p1 (2.6 1.5 0.3);
p2 (3.2 2.1 0.5);
}

}
// Get all faces in cellSet
{
name v_porous;
type cellZoneSet;
action new;
source setToCellZone;
sourceInfo
{
set v_porous; // name of cellSet
}
}

);


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

However when I do topoSet, I get following error:
------------------------------------------------------------------------------------
Create time

Create polyMesh for time = 0

Reading topoSetDict

Time = 0
mesh not changed.
Created cellZoneSet v_porous
Applying source setToCellZone
Adding all cells from cellSet v_porous ...


--> FOAM FATAL IO ERROR:
cannot find file

file: /Desktop/Trial/constant/polyMesh/sets/v_porous at line 0.

From function regIOobject::readStream()
in file db/regIOobject/regIOobjectRead.C at line 73.

FOAM exiting
----------------------------------------------------------------------------------

Am I missing some step in between? A file called v_porous should be there in sets inside polyMesh folder. How is it generated?

Request help. I am new to OpneFoam. Thanks in advance.
Anirudh_Deodhar is offline   Reply With Quote

Old   February 2, 2016, 03:24
Default
  #2
Member
 
Join Date: Sep 2014
Location: Germany
Posts: 88
Rep Power: 12
TobM is on a distinguished road
Just a guess: Try to name your cellSet and cellZoneSet differently.
TobM is offline   Reply With Quote

Old   February 2, 2016, 04:20
Default
  #3
New Member
 
Andeo
Join Date: Jun 2010
Location: Pune, India
Posts: 12
Rep Power: 16
Anirudh_Deodhar is on a distinguished road
Thanks TobM. That doesn't seem to work.
Same error again.
Anirudh_Deodhar is offline   Reply With Quote

Old   February 2, 2016, 04:44
Default
  #4
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,938
Rep Power: 39
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
Hi,

You are using quite interesting syntax to define boxToCell source.

Code:
source boxToCell;	
sourceInfo
boxes
{
p1 (2.6 1.5 0.3);
p2 (3.2 2.1 0.5);
}
Both 2.4.0 and 3.0.x suggest the following:

Code:
source boxToCell;
sourceInfo
{
    box   (0 0 0) (1 1 1);
    //boxes   ((0 0 0) (1 1 1) (10 10 10)(11 11 11));
}
And since you have only two points, you need box variant.
alexeym is offline   Reply With Quote

Old   February 2, 2016, 05:03
Default
  #5
New Member
 
Andeo
Join Date: Jun 2010
Location: Pune, India
Posts: 12
Rep Power: 16
Anirudh_Deodhar is on a distinguished road
Hi Alexey
Your suggestion did the trick! I guess I picked up syntax from some older tutorial and messed it up. Thanks a lot!
Anirudh_Deodhar 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
alphaEqn.H in twoPhaseEulerFoam cheng1988sjtu OpenFOAM Bugs 15 May 1, 2016 17:12
[Commercial meshers] CuBit t42 OpenFOAM Meshing & Mesh Conversion 6 July 10, 2008 08:51
fluent add additional zones for the mesh file SSL FLUENT 2 January 26, 2008 12:55
[blockMesh] Axisymmetrical mesh Rasmus Gjesing (Gjesing) OpenFOAM Meshing & Mesh Conversion 10 April 2, 2007 15:00
Porous volume modeling Ganapathy CFX 0 January 13, 2006 00:36


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