CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Pre-Processing (https://www.cfd-online.com/Forums/openfoam-pre-processing/)
-   -   setFields doesn't function for a tetrahedral mesh - interFoam (https://www.cfd-online.com/Forums/openfoam-pre-processing/74993-setfields-doesnt-function-tetrahedral-mesh-interfoam.html)

tommie April 13, 2010 18:24

setFields doesn't function for a tetrahedral mesh - interFoam
 
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

sega April 14, 2010 13:57

Quote:

Originally Posted by tommie (Post 254490)
If I install and use funkySetFields could be that a solution?

I would give it a try. funkySetFields is a very useful contribution!

alberto April 15, 2010 01:08

Could you post a small simple case where it doesn't work?

Best,

tommie April 15, 2010 03:06


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.

alberto April 15, 2010 03:28

Maybe you can report a bug and provide a test case.

Best,

holger_marschall April 15, 2010 03:32

Hi Tommie,

Quote:

Originally Posted by tommie (Post 254700)
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 (Post 254700)
(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 (Post 254700)
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


All times are GMT -4. The time now is 10:47.