CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM Programming & Development

fixedGradient Boundary Condition

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

LinkBack Thread Tools Display Modes
Old   September 27, 2011, 15:52
Default fixedGradient Boundary Condition
Senior Member
Hisham's Avatar
Hisham Elsafti
Join Date: Apr 2011
Location: Braunschweig, Germany
Posts: 253
Blog Entries: 10
Rep Power: 10
Hisham is on a distinguished road
Dear Foamers,

I am currently developing a boundary condition to interpolate values over time and space like the timeVaryingMappedFixedValue patch, but for traction/pressure (tractionDisplacement patch) which inherits the fixedGradient patch.

After the interpolation weight (s) is calculated, the timeVaryingMappedFixedValue patch assigns values through this command

00710 this->operator==((1-s)*startSampledValues_ + s*endSampledValues_);
From this post, I understood that the "==" operator imposes assigned values on the patch (if a "=" is used then new values will not be imposed).

On the other hand, the tractionDisplacement BC assigns its values to gadient() as:
gradient() =
        (traction_ + pressure_*n)/rho.value()
      + twoMuLambda*fvPatchField<vector>::snGrad() - (n & sigmaD)
My question is: Is it OK to just assign calculated values "gradient" to the gradient() using a "=" operator for each time step? Or is some forcing of the values needed?

Best regards,

Last edited by Hisham; September 27, 2011 at 16:32.
Hisham is offline   Reply With Quote


fixedgradient, soliddisplacementfoam, timevaryingmapped, tractiondisplacement

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
Domain Imbalance HMR CFX 5 October 10, 2016 05:57
Boundary Conditions Thomas P. Abraham Main CFD Forum 20 July 7, 2013 05:05
asking for Boundary condition in FLUENT Destry FLUENT 0 July 27, 2010 00:55
problem with boundary condition??? smn CFX 5 November 24, 2009 07:37
How to set boundary condition in Fluent for the fo Peiyong FLUENT 1 November 10, 2006 12:44

All times are GMT -4. The time now is 06:51.