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

[swak4Foam] funkySetField

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 11, 2012, 05:40
Default funkySetField
  #1
New Member
 
Join Date: Jun 2012
Posts: 8
Rep Power: 14
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: 4,225
Rep Power: 51
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: 14
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


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
Bubble in zero gravity conditions sega OpenFOAM Running, Solving & CFD 59 November 25, 2011 08:21
[Technical] Cell numbering sega OpenFOAM Meshing & Mesh Conversion 1 April 20, 2010 12:32
[swak4Foam] funkySetField lions85 OpenFOAM Community Contributions 2 March 17, 2010 08:57


All times are GMT -4. The time now is 00:20.