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

Neumann boundary conditions

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

Like Tree1Likes

LinkBack Thread Tools Display Modes
Old   October 26, 2010, 05:02
Senior Member
Join Date: Feb 2010
Location: Stanford University
Posts: 262
Rep Power: 11
Cyp is on a distinguished road
Hi Herbert!

Indeed I want to edit the BC for p from the BC of U (in the case of a two-phase Darcy law)
Cyp is offline   Reply With Quote

Old   October 26, 2010, 06:47
Senior Member
Stefan Herbert
Join Date: Dec 2009
Location: Darmstadt, Germany
Posts: 129
Rep Power: 11
herbert is on a distinguished road

I was just confused because of your nomenclature...
herbert is offline   Reply With Quote

Old   September 7, 2011, 17:48
Join Date: Jul 2010
Posts: 49
Rep Power: 9
mrshb4 is on a distinguished road
Dear Firends!!!

I used refCast for temperture filed like this;

label patchID = mesh.boundaryMesh().findPatchID("right");
fixedGradientFvPatchScalarField& gradUPatch=refCast<fixedGradientFvPatchScalarField >(T.boundaryField()[patchID]);
scalarField& gradUField = gradUPatch.gradient();

but during compilation faced this error:
================================================== =========
solveEnergy.H:78: error: ‘fixedGradientFvPatchField’ was not declared in this scope
solveEnergy.H:78: error: ‘gradUPatch’ was not declared in this scope
solveEnergy.H:78: error: ‘fixedGradientFvPatchField’ cannot appear in a constant-expression
solveEnergy.H:78: error: no matching function for call to ‘refCast(Foam::fvPatchField<double>&)’
================================================== =========

I also add this to my header but still have error
# include "fixedGradientFvPatchFields.H"

I use fixedValue in the same way in my code but no error would occur and everything works fine!!!

what's the problem?!
mrshb4 is offline   Reply With Quote


boundary conditions, fixedgradient, neumann

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
Impinging Jet Boundary Conditions Anindya Main CFD Forum 25 February 27, 2016 13:58
mesh file for flow over a circular cylinder Ardalan Main CFD Forum 6 April 17, 2010 23:40
Concentric tube heat exchanger (Air-Water) Young CFX 5 October 6, 2008 23:17
Pressure boundary conditions Lionel S. Main CFD Forum 1 August 24, 2007 18:03
Trimmed cell and embedded refinement mesh conversion issues michele OpenFOAM Other Meshers: ICEM, Star, Ansys, Pointwise, GridPro, Ansa, ... 2 July 15, 2005 04:15

All times are GMT -4. The time now is 10:53.