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

createBaffles boundary conditions with internalField

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 10, 2019, 10:45
Default createBaffles boundary conditions with internalField
  #1
New Member
 
Eduardo Cruz
Join Date: Oct 2018
Posts: 9
Rep Power: 2
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, 03:29
Default
  #2
Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 68
Rep Power: 9
Yann is on a distinguished road
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
Yann is offline   Reply With Quote

Old   July 12, 2019, 13:31
Default
  #3
New Member
 
Eduardo Cruz
Join Date: Oct 2018
Posts: 9
Rep Power: 2
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, 12:15
Default
  #4
Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 68
Rep Power: 9
Yann is on a distinguished road
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

Thread Tools Search this Thread
Search this Thread:

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


All times are GMT -4. The time now is 12:30.