CFD Online URL
[Sponsors]
Home > Forums > OpenFOAM Running, Solving & CFD

funkySetField

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   September 11, 2012, 05:40
Default funkySetField
  #1
New Member
 
Join Date: Jun 2012
Posts: 8
Rep Power: 4
newbie29 is on a distinguished road
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
newbie29 is offline   Reply With Quote

Old   September 11, 2012, 20:39
Default
  #2
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,889
Rep Power: 38
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by newbie29 View Post
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 ...)
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   September 12, 2012, 02:50
Default
  #3
New Member
 
Join Date: Jun 2012
Posts: 8
Rep Power: 4
newbie29 is on a distinguished road
Hello,

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

Regards
Nils
newbie29 is offline   Reply With Quote

Reply

Tags
funkysetfield, internal field, velocity

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Bubble in zero gravity conditions sega OpenFOAM Running, Solving & CFD 59 November 25, 2011 08:21
Cell numbering sega OpenFOAM Meshing Format & General Technical 1 April 20, 2010 12:32
funkySetField lions85 OpenFOAM 2 March 17, 2010 09:57


All times are GMT -4. The time now is 13:01.