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

Compute the gradient for use in BCs

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 13, 2018, 10:02
Post Compute the gradient for use in BCs
  #1
New Member
 
Join Date: Feb 2018
Posts: 2
Rep Power: 0
turbulo is on a distinguished road
Hello,

I'm fairly new to OpenFOAM and would like to know if it possible to use the gradient operator to define a new boundary condition for velocity. When I use
Code:
fvc::grad(U1)
the compiler says:

Code:
 'grad' is not a member of 'Foam::fvc'
There seems to be no other issue with the code if I remove the part involving the gradient.

I've taken the already existing movingWallVelocity BC and modified it to get the new BC. I'm fairly good at C++ but still not familiar enough with OpenFOAM's structure to figure this out. Any help or hint in the right direction would be really appreciated.
turbulo is offline   Reply With Quote

Reply

Tags
boundary condition, openfoam


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
Temperature gradient for the internal Field. Philipp Dietrich OpenFOAM Programming & Development 0 July 2, 2014 04:15
WSS and normal velocity gradient for the slanted pipe wanna88 FLUENT 2 October 1, 2012 23:34
vortex cause pressure gradient or pressure gradient induce vortex? fruitkiwi Main CFD Forum 4 June 12, 2012 02:12
How to compute gradient for non-orthogonal grids? Paul Hsieh Main CFD Forum 3 November 11, 2003 05:52
how to compute the gradient of a function zhanglei Main CFD Forum 2 January 10, 2001 09:11


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