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

[Commercial meshers] Problem with fluentMeshtoFoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 29, 2014, 05:24
Default Problem with fluentMeshtoFoam
  #1
Senior Member
 
Join Date: Jun 2012
Location: Germany, Bochum
Posts: 230
Rep Power: 15
Bazinga is on a distinguished road
Hello,

I am fairly new to OpenFOAM and just trying to get my first simulations going. I tried to use the turbinesiting tutorial as a start for my simulation. After setting up the correct boundary conditions and importing my mesh from fluent I get the following error:

Creating finite volume options from fvOptions

Selecting finite volume options model type actuationDiskSource
Source: disk1
- applying source for all time
- selecting cells using cellSet actuationDisk1


--> FOAM FATAL ERROR:
Cannot find directory "polyMesh/sets" in times 0 down to constant

From function Time::findInstance(const fileName&, const word&, const IOobject::readOption, const word&)
in file db/Time/findInstance.C at line 142.

FOAM exiting


If I understand the error message correct, he is looking for a file "sets" in constant/polyMesh, but I don't know what this file is for.

Best regards
Bazinga is offline   Reply With Quote

Old   September 29, 2014, 12:43
Default
  #2
Senior Member
 
Chris Sideroff
Join Date: Mar 2009
Location: Ottawa, ON, CAN
Posts: 434
Rep Power: 22
cnsidero is on a distinguished road
Is it the solver (simpleFoam) that throws this error or fluentMeshToFoam? Either way, here's the generic explanation of how this tutorial is setup.

To model the presence of the turbine rotor, a momentum source term is used. The mechanics of adding the source term in that tutorial is through fvOptions - a generic method to add a momentum source term at run-time. The particular type used is called "actuationDiskSource". The type and necessary parameters are specified in the ./system/fvOptions file. You'll notice in that file the selectionMode is "cellSet" with it's name on the next line. A cellSet is simply a group of "marked" cells on which you can perform specific operations - in this case, applying a momentum source. cellSet's (or any other type of sets) are stored in the ./constant/polyMesh/sets/ directory.

If you look in the Allrun script of the tutorial, you'll notice it runs "topoSet" - this is the step that creates the cellSet's. Unless provided, "topoSet" looks for ./system/topoSetDict for the definitions so look in that file for how it works.

Since you're using your own mesh, you need to figure out where you want your actuator disk to be applied and run "topoSet" to create the cellSet before running the solver. Dig around the OpenFOAM wiki and the forums for help on using topoSet

Let me finish by saying, the generation of the mesh and cellSet are done in parallel so the final mesh and sets reside in the ./processor*/constant/polyMesh/ directories rather than simply the ./constant/polyMesh/ directory.
cnsidero is offline   Reply With Quote

Old   September 30, 2014, 04:15
Default
  #3
Senior Member
 
Join Date: Jun 2012
Location: Germany, Bochum
Posts: 230
Rep Power: 15
Bazinga is on a distinguished road
Dear Mr. Sideroff,

thank you very much for your reply.

The error was indeed when running simpleFoam. I used this tutorial because of the modeling of the atmopsheric boundary layer but never intended to use a wind turbine. I commented out the lines in the fvOptions file and now it works.

Thanks again, have a good day.
Bazinga 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
Is COMSOL Multi Physics is suitable to solve complex flow problem? steve lee COMSOL 8 January 5, 2023 02:31
BuoyantBoussinesqSimpleFoam_Facing problem Mondal131211 OpenFOAM Running, Solving & CFD 1 April 10, 2019 19:41
Mesh& steptime independant: conduction-convection problem Fati1 Main CFD Forum 1 October 28, 2018 13:52
natural convection problem for a CHT problem Se-Hee CFX 2 June 10, 2007 06:29
Adiabatic and Rotating wall (Convection problem) ParodDav CFX 5 April 29, 2007 19:13


All times are GMT -4. The time now is 09:53.