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

Setting normal gradient as BC

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By fumiya

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   May 3, 2019, 09:27
Default Setting normal gradient as BC
  #1
New Member
 
Join Date: Dec 2016
Posts: 23
Rep Power: 9
Dozer_94 is on a distinguished road
Hi all,

I am editing icoFoam for a specific calculation in which I want to set the normal gradient of a patch as a boundary condition.

So normally scalar field 'c' would be solved using the BCs for the values of 'c', but now I would like OF to use normal gradient 'dc/dn' as BC.

I know that 'c.boundaryField()[patch].snGrad()' would return the values of the normal gradient, but I'd like it vice versa.

Anyone know if this is possible at all?

Thanks in advance,
Dozer_94 is offline   Reply With Quote

 

Tags
solver, volscalarfield


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
[swak4Foam] Boundary Conditions with GroovyBC, Normal Gradient treima OpenFOAM Community Contributions 32 November 17, 2017 03:44
How to extract the normal pressure gradient from the momentum equation mtgoncalves OpenFOAM Programming & Development 4 September 29, 2017 10:50
Surface normal velocity BC with zero gradient tangential, cylinder c_dowd OpenFOAM Running, Solving & CFD 0 May 25, 2013 07:22
[swak4Foam] Boundary Conditions with GroovyBC, Normal Gradient treima OpenFOAM Community Contributions 2 January 26, 2013 02:37
normal temperature gradient on a boundary Sandrine FLUENT 0 June 10, 2009 12:29


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