|
[Sponsors] |
February 2, 2016, 02:54 |
Use of topoSet for creating porous volume
|
#1 |
New Member
Andeo
Join Date: Jun 2010
Location: Pune, India
Posts: 12
Rep Power: 16 |
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. |
|
February 2, 2016, 03:24 |
|
#2 |
Member
Join Date: Sep 2014
Location: Germany
Posts: 88
Rep Power: 12 |
Just a guess: Try to name your cellSet and cellZoneSet differently.
|
|
February 2, 2016, 04:20 |
|
#3 |
New Member
Andeo
Join Date: Jun 2010
Location: Pune, India
Posts: 12
Rep Power: 16 |
Thanks TobM. That doesn't seem to work.
Same error again. |
|
February 2, 2016, 04:44 |
|
#4 |
Senior Member
|
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); } Code:
source boxToCell; sourceInfo { box (0 0 0) (1 1 1); //boxes ((0 0 0) (1 1 1) (10 10 10)(11 11 11)); } |
|
February 2, 2016, 05:03 |
|
#5 |
New Member
Andeo
Join Date: Jun 2010
Location: Pune, India
Posts: 12
Rep Power: 16 |
Hi Alexey
Your suggestion did the trick! I guess I picked up syntax from some older tutorial and messed it up. Thanks a lot! |
|
|
|
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 |