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

createBaffles boundary conditions with internalField

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Yann

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 10, 2019, 11:45
Default createBaffles boundary conditions with internalField
  #1
New Member
 
Eduardo Cruz
Join Date: Oct 2018
Posts: 13
Rep Power: 8
ECruz is on a distinguished road
Hi everyone,


I'm running some simulations that use the createBaffles utility. The thing is I am running them multiple times with different values. So ideally I'd like to do something like this in the createBafflesDict


Code:
patchFields
{
    omega
    {
        type            omegaWallFunction;
        value           $internalField;
    }
    ...
}
to avoid changing the file manually every time. But doing it this way, I get the error


Code:
--> FOAM FATAL IO ERROR: 
Illegal dictionary entry or environment variable name "internalField"
Valid dictionary entries are 1(type)
Is there any way I can do this?


Regards,


ECruz
ECruz is offline   Reply With Quote

Old   July 11, 2019, 04:29
Default
  #2
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,238
Rep Power: 29
Yann will become famous soon enoughYann will become famous soon enough
Hello Eduardo,

AFAIK with createBaffles you can specify the generic type of boundary (wall, patch, etc..) but not directly define the boundary conditions as you tried to do in your example.
But you can use changeDictionary utility, with changeDictionaryDict to update your boundary conditions.

That being said, I am not sure to totally understand what you mean when you say:

Quote:
Originally Posted by ECruz View Post
The thing is I am running them multiple times with different values.
Can you elaborate? Depending on what you need to do maybe there are other solutions.


Yann
the_ichthyologist likes this.
Yann is offline   Reply With Quote

Old   July 12, 2019, 14:31
Default
  #3
New Member
 
Eduardo Cruz
Join Date: Oct 2018
Posts: 13
Rep Power: 8
ECruz is on a distinguished road
Quote:
Can you elaborate? Depending on what you need to do maybe there are other solutions.
Yes, I'm running the same case with many different inlet velocities, which in turn imply different boundary conditions for k and omega.


Quote:
AFAIK with createBaffles you can specify the generic type of boundary (wall, patch, etc..) but not directly define the boundary conditions as you tried to do in your example.
If i change $internalField for a specific value, it works. But this way I need to manually change createBafflesDict everytime. I'd like to avoid that.


ECruz
ECruz is offline   Reply With Quote

Old   July 15, 2019, 13:15
Default
  #4
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,238
Rep Power: 29
Yann will become famous soon enoughYann will become famous soon enough
Then you can use changeDictionary to update your boundary conditions and internal field initialization with new values.
But you'll have to set those values in the changeDictionaryDict anyway.


You can use shell scripting to automatically update files, whether it is directly editing the files or doing it though changeDictionary.
Yann is offline   Reply With Quote

Reply

Tags
boundary condition, createbaffles, internalfield


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
CFD analaysis of Pelton turbine amodpanthee CFX 31 April 19, 2018 19:02
Domain Imbalance HMR CFX 5 October 10, 2016 06:57
Error - Solar absorber - Solar Thermal Radiation MichaelK CFX 12 September 1, 2016 06:15
Problem in setting Boundary Condition Madhatter92 CFX 12 January 12, 2016 05:39
Error finding variable "THERMX" sunilpatil CFX 8 April 26, 2013 08:00


All times are GMT -4. The time now is 17:23.