CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Running, Solving & CFD

TimeVaryingUniformFixedValue boundary condition

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

Reply
 
LinkBack Thread Tools Display Modes
Old   May 9, 2007, 14:01
Default Correct me if I am wrong. But
  #1
liu
Senior Member
 
Xiaofeng Liu
Join Date: Mar 2009
Location: State College, PA, USA
Posts: 118
Rep Power: 8
liu is on a distinguished road
Correct me if I am wrong. But the timeVaryingUniformFixedValue for vector (such as veloctiy) on a boundary can only specify the magnitude. The direction of the uniform vector is acturally the surface normal:

template<>
void timeVaryingUniformFixedValueFvPatchField<vector>:: updateCoeffs()
{
if (this->updated())
{
return;
}

checkTable();

operator==
(
-interpolateXY
(
this->db().time().value(),
timeDataPtr_().x(),
timeDataPtr_().y()
)*patch().nf()
);

fixedValueFvPatchField<vector>::updateCoeffs();
}

All these boils down to the design of graph class. It can only accept x-y relationship where x and y are both scalars. Can't y be vector? That way we can specify a graph using data file like
(
t0 (v1 v2 v3)
t1 (. . .)
...
tN (v1N, v2N, v3N)
)

Interpolation of vector between t(i) and t(i+1) can be component wise. If graph is designed like this, timeVaryingUniformFixedValueFvPatchField<vector> can specify uniform velocity in any direction.
__________________
Xiaofeng Liu, Ph.D., P.E.,
Assistant Professor
Department of Civil and Environmental Engineering
Penn State University
223B Sackett Building
University Park, PA 16802


Web: http://water.engr.psu.edu/liu/
liu is offline   Reply With Quote

Old   October 12, 2007, 13:19
Default timeVaryingUniformFixedValue b
  #2
New Member
 
Kanyanta Valentine
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 11
Rep Power: 8
valentine is on a distinguished road
timeVaryingUniformFixedValue boundary condition does not seem to work with sonicLiquidFoam. Any idea why this is the case?

Thanks.
valentine is offline   Reply With Quote

Reply

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
TimeVaryingUniformFixedValue holger_marschall OpenFOAM Running, Solving & CFD 4 August 10, 2013 14:47
TimeVaryingUniformFixedValue BC in foam 15 nzy102 OpenFOAM Running, Solving & CFD 5 August 19, 2008 08:08
TimeVaryingUniformFixedValue with sonicLiquidFoam Bugs amp Fixes chnrdu OpenFOAM Bugs 1 May 21, 2008 09:52
TimeVaryingUniformFixedValue does not work as a pressureInlet with sonicLiquidFoam nishant_hull OpenFOAM Running, Solving & CFD 5 May 21, 2008 08:54
Boundary condition of the third kind or Danckwertz boundary condition plage OpenFOAM Running, Solving & CFD 4 October 3, 2006 12:21


All times are GMT -4. The time now is 02:11.