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

Understanding UniformFixedValue boundary condition

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By amtri

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 30, 2020, 17:55
Default Understanding UniformFixedValue boundary condition
  #1
New Member
 
Join Date: Aug 2010
Posts: 15
Rep Power: 16
amtri is on a distinguished road
Hello,


I have a couple of results files that I am unable to clearly understand. In one of them I see a boundary condition defined as follows:

type uniformFixedValue;
uniformValue tableFile;
uniformValueCoeffs
{

file "ramp";
}

Another boundary condition is defined as


type uniformFixedValue;
uniformValue tableFile;
uniformValueCoeffs
{
file "ramp";
}
value uniform -0.002893859;



The only difference between the two entries is the "value" entry. This happens to be a scalar value. But suppose this were a vector value. What should the contents of the file "ramp" contain? A vector per entry? Or a scalar per entry that is simply used to scale a value as a function of time?


I ask because the second boundary condition has a "value" defined. If the quantity were a vector, I imagine the "value" would have 3 components if I were to use the contents of "ramp" to scale the quantities as a function of time. But "value" is not present in the first case. So if "ramp" contains scaling values for time, what would be the 3 components to be scaled?


Thanks. I would be grateful for any help in clarifying this issue for me.
amtri is offline   Reply With Quote

Old   November 2, 2020, 03:43
Default
  #2
RGS
Member
 
Rohit George Sebastian
Join Date: May 2017
Posts: 42
Rep Power: 9
RGS is on a distinguished road
Quote:
Originally Posted by amtri View Post
Hello,


I have a couple of results files that I am unable to clearly understand. In one of them I see a boundary condition defined as follows:

type uniformFixedValue;
uniformValue tableFile;
uniformValueCoeffs
{

file "ramp";
}

Another boundary condition is defined as


type uniformFixedValue;
uniformValue tableFile;
uniformValueCoeffs
{
file "ramp";
}
value uniform -0.002893859;



The only difference between the two entries is the "value" entry. This happens to be a scalar value. But suppose this were a vector value. What should the contents of the file "ramp" contain? A vector per entry? Or a scalar per entry that is simply used to scale a value as a function of time?


I ask because the second boundary condition has a "value" defined. If the quantity were a vector, I imagine the "value" would have 3 components if I were to use the contents of "ramp" to scale the quantities as a function of time. But "value" is not present in the first case. So if "ramp" contains scaling values for time, what would be the 3 components to be scaled?


Thanks. I would be grateful for any help in clarifying this issue for me.

Hello,


The syntax for using this boundary condition (including how to use it for vectors and for ramping values over time) can be found here: https://www.openfoam.com/documentati...xed-value.html

As you can see, there are no uniformValueCoeffs or value entries for this boundary condition. Did you find this code in a case folder that runs without errors?


Cheers
RGS is offline   Reply With Quote

Old   November 2, 2020, 19:03
Default
  #3
New Member
 
Join Date: Aug 2010
Posts: 15
Rep Power: 16
amtri is on a distinguished road
Quote:
Originally Posted by RGS View Post
Hello,


The syntax for using this boundary condition (including how to use it for vectors and for ramping values over time) can be found here: https://www.openfoam.com/documentati...xed-value.html

As you can see, there are no uniformValueCoeffs or value entries for this boundary condition. Did you find this code in a case folder that runs without errors?


Cheers

Hi RGS,


Thanks for the reply.


Yes; the folder has results for several time steps. Unfortunately, I am focused on the syntax of the files - which is why people come to me on this. But I'm no expert in running OpenFOAM.


I should have access to a Ubuntu machine in a few days. I can install OpenFOAM there - much easier than on Windows.


Interestingly enough, there is no time step 0; I guess it's the first time I see that. The analysis start at 0.38. I don't see the "value" parameter at steps 0.38, but I see it in all subsequent steps. This leads me to believe that these subsequent steps were generated by OpenFOAM. They do appear to be machine formatted.


Are you aware of a file syntax verifier for OpenFOAM?


Thanks.
amtri is offline   Reply With Quote

Old   November 3, 2020, 04:27
Default
  #4
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,207
Rep Power: 28
Yann will become famous soon enough
Hello Amtri,

uniformFixedValue is a boundary condition derived from one of the basic one. The "value" parameter is a placeholder inherited from this basic condition. It is read only at startup and might be used as an initial value if the boundary condition does not overwrite it right away.

Please check here : What is the difference between the parameters 'value' and 'p0' in totalPressure BC?

So there is basically no difference between the boundary condition definitions in your initial post.

The value defined in the file "ramp" or in the "value" parameter can be a scalar or a vector, depending on which variable it is applied to. (eg. it has to be a vector if it is used for the velocity, or a scalar if it is applied on the temperature)

I hope this helps,
Yann
Yann is offline   Reply With Quote

Old   November 3, 2020, 13:16
Default
  #5
New Member
 
Join Date: Aug 2010
Posts: 15
Rep Power: 16
amtri is on a distinguished road
Hi Yann,


Thanks so much for the clarification. I followed all the links you pointed me to. Apparently I wasn't the only one confused by this.


Thanks again!
Yann likes this.
amtri is offline   Reply With Quote

Old   November 10, 2020, 18:46
Default BC for oscillating Wall
  #6
New Member
 
Rmc
Join Date: Nov 2020
Posts: 3
Rep Power: 6
RMC1 is on a distinguished road
Hi Foamer, I need help urgently as I am a beginner in openFoam. I want to make a wall oscillate that should move in x direction.
Unfortunately I am missing the right BC for uniformFixedValue or codedFixedValue.

please help me urgently.
RMC1 is offline   Reply With Quote

Reply

Tags
boundary condition, uniformfixedvalue


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
UDF for Automatic Solution Initialization for previous case data file gartz89 Fluent UDF and Scheme Programming 6 March 30, 2020 08:38
Out File does not show Imbalance in % Mmaragann CFX 5 January 20, 2017 11:20
Accessing multiple boundary patches from a custom boundary condition file ripudaman OpenFOAM Programming & Development 0 October 22, 2014 19:34
Radiation interface hinca CFX 15 January 26, 2014 18:11
Error finding variable "THERMX" sunilpatil CFX 8 April 26, 2013 08:00


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