CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Running, Solving & CFD (
-   -   Defining mesh motion diffusivity from file (

cuba July 9, 2013 03:07

Defining mesh motion diffusivity from file
Hi Everyone,

I am looking for a sample case where the mesh motion diffusivity (using laplaceFaceDecomposition) is defined from file for each point in the mesh?

You may think my case as a shoebox where the top stands still and bottom moves. My mesh is finer at the bottom.
Short side walls of this box are my inlet and outlet boundaries and the long side walls are the slip boundaries.

Thanks for the replies

akidess July 9, 2013 04:14

I don't know a tutorial case, but from what I can tell (looking at the code in 1.6-ext) the diffusivity is defined as a surfaceScalarField, i.e. per face. I'm not sure if there is a tool to set values on a surfaceScalarField (such as setFields for vol*Fields), but if there isn't it wouldn't be too hard to write a small tool specifically for your case.

ChristophGradl February 12, 2015 06:00

I am also looking for a sample case - did you found one?
Do you have another solution or workaround?

Thank you,

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