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

setFields doesn't function for a tetrahedral mesh - interFoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 13, 2010, 19:24
Default setFields doesn't function for a tetrahedral mesh - interFoam
  #1
New Member
 
Volker Ludewig
Join Date: Mar 2009
Location: Chemnitz, saxony, germany
Posts: 12
Rep Power: 17
tommie is on a distinguished road
Hi everyone,

I want to set up a interFoam case and I have problems to get running setFields.

I definite a box:

regions
(
boxToCell
{
box (0 0 -1) (0.5 0.5 -0.5);
fieldValues
(
volScalarFieldValue gamma 1
);
}
);
After executing nothing happens.
I tried to create a box with cellSet (via cellSetDict). It also fails.
I created the mesh with salome meca. Imported via ideasUnvToFoam. The mesh contains of tetrahedrons.
If I install and use funkySetFields could be that a solution?

Thanks for all hints and comments.
Tommie
tommie is offline   Reply With Quote

Old   April 14, 2010, 14:57
Default
  #2
Senior Member
 
sega's Avatar
 
Sebastian Gatzka
Join Date: Mar 2009
Location: Frankfurt, Germany
Posts: 729
Rep Power: 20
sega is on a distinguished road
Quote:
Originally Posted by tommie View Post
If I install and use funkySetFields could be that a solution?
I would give it a try. funkySetFields is a very useful contribution!
__________________
Schrödingers wife: "What did you do to the cat? It's half dead!"
sega is offline   Reply With Quote

Old   April 15, 2010, 02:08
Default
  #3
Senior Member
 
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36
alberto will become famous soon enoughalberto will become famous soon enough
Could you post a small simple case where it doesn't work?

Best,
__________________
Alberto Passalacqua

GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as in both physical and virtual formats (current status: http://albertopassalacqua.com/?p=1541)
OpenQBMM - An open-source implementation of quadrature-based moment methods.

To obtain more accurate answers, please specify the version of OpenFOAM you are using.
alberto is offline   Reply With Quote

Old   April 15, 2010, 04:06
Default
  #4
New Member
 
Volker Ludewig
Join Date: Mar 2009
Location: Chemnitz, saxony, germany
Posts: 12
Rep Power: 17
tommie is on a distinguished road

I installed funkySetFields in 1.5-dev and now it works!!
My congratulation to the developer of funkySetFields.
It's a very good contribution.

(funkySetFields -time 0 -field gamma -expression 1 -condition "pos().x <= 0.5 && pos().y <= 0.5 && pos().z >= -0.5")

After executing funkySetFields I had to reconfigure boundary conditions of gamma- dict (walls, inlets, inletOutlets ...)

On my system setFields together with dam break tutorial works.
But it doesn't work if I create a tetra mesh with Salome Meca 4.1.4 (approx 250.000 cells) and import this via ideasUnvToFoam.
tommie is offline   Reply With Quote

Old   April 15, 2010, 04:28
Default
  #5
Senior Member
 
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36
alberto will become famous soon enoughalberto will become famous soon enough
Maybe you can report a bug and provide a test case.

Best,
__________________
Alberto Passalacqua

GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as in both physical and virtual formats (current status: http://albertopassalacqua.com/?p=1541)
OpenQBMM - An open-source implementation of quadrature-based moment methods.

To obtain more accurate answers, please specify the version of OpenFOAM you are using.
alberto is offline   Reply With Quote

Old   April 15, 2010, 04:32
Default
  #6
Senior Member
 
Holger Marschall
Join Date: Mar 2009
Location: Darmstadt, Germany
Posts: 126
Rep Power: 19
holger_marschall is on a distinguished road
Send a message via Skype™ to holger_marschall
Hi Tommie,

Quote:
Originally Posted by tommie View Post
I installed funkySetFields in 1.5-dev and now it works!!
My congratulation to the developer of funkySetFields.
It's a very good contribution.
Credit goes to Bernhard Gschaider

Quote:
Originally Posted by tommie View Post
(funkySetFields -time 0 -field gamma -expression 1 -condition "pos().x <= 0.5 && pos().y <= 0.5 && pos().z >= -0.5")

After executing funkySetFields I had to reconfigure boundary conditions of gamma- dict (walls, inlets, inletOutlets ...)
Add -keepPatches to your line, and no reediting of these files is needed...

Quote:
Originally Posted by tommie View Post
On my system setFields together with dam break tutorial works.
But it doesn't work if I create a tetra mesh with Salome Meca 4.1.4 (approx 250.000 cells) and import this via ideasUnvToFoam.
Would you provide a minimal working example? (We still would like to know were the problem takes its origin.)

best,
Holger
__________________
Holger Marschall
web: http://www.holger-marschall.info
mail: holgermarschall@yahoo.de
holger_marschall 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
[ICEM] Hexa mesh, curve mesh setup, bunching law Anorky ANSYS Meshing & Geometry 4 November 12, 2014 01:27
LiencubiclowRemodel nzy102 OpenFOAM Bugs 14 January 10, 2012 09:53
Question on InterFoam moving mesh capabilities ziv OpenFOAM Running, Solving & CFD 0 April 23, 2008 10:11
DecomposePar links against liblamso0 with OpenMPI jens_klostermann OpenFOAM Bugs 11 June 28, 2007 18:51
Droplet Evaporation Christian Main CFD Forum 2 February 27, 2007 07:27


All times are GMT -4. The time now is 12:22.