CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (http://www.cfd-online.com/Forums/openfoam-solving/)
-   -   funkySetField (http://www.cfd-online.com/Forums/openfoam-solving/106861-funkysetfield.html)

newbie29 September 11, 2012 04:40

funkySetField
 
Hello,

I'm using funkySetFieldDict to define the velocity of my internal field. Unfortunately after using the funkySetField command all the other boundary conditions defined in the U-file are replaced by zeroGradient. Is there a way that funkySetField keeps the previous defined velocity boundary conditions? Otherwise it is quite time consuming to correct every single case.

See my used funkySetFieldDict:

Code:

FoamFile
{
    version        2.0;
    format          ascii;
    class          dictionary;
    object          funkySetFieldsDict;
}

expressions
(
    internalfield
    {
        field U;
        expression "(18*((log(pos().z/0.0002))/(log(17/0.0002))))*vector(-0.966,0.259,0)";
        }
);

Thanks for any help in advance!!!
Regards
Nils

gschaider September 11, 2012 19:39

Quote:

Originally Posted by newbie29 (Post 381174)
Hello,

I'm using funkySetFieldDict to define the velocity of my internal field. Unfortunately after using the funkySetField command all the other boundary conditions defined in the U-file are replaced by zeroGradient. Is there a way that funkySetField keeps the previous defined velocity boundary conditions? Otherwise it is quite time consuming to correct every single case.

See my used funkySetFieldDict:

Code:

FoamFile
{
    version        2.0;
    format          ascii;
    class          dictionary;
    object          funkySetFieldsDict;
}

expressions
(
    internalfield
    {
        field U;
        expression "(18*((log(pos().z/0.0002))/(log(17/0.0002))))*vector(-0.966,0.259,0)";
        }
);

Thanks for any help in advance!!!
Regards
Nils

The solution exists since the first versions of funkySetFields and it is even documented at http://openfoamwiki.net/index.php/Co...and_line_usage : keepPatches (documentation is a fascinating thing ...)

newbie29 September 12, 2012 01:50

Hello,

thanks a lot for your hint, it woks perfectly. And shame on me!!! :o

Regards
Nils


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