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

Neumann boundary conditions

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

Reply
 
LinkBack Thread Tools Display Modes
Old   October 26, 2010, 05:02
Default
  #21
Cyp
Senior Member
 
Cyprien
Join Date: Feb 2010
Location: Stanford University
Posts: 230
Rep Power: 9
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
Default
  #22
Senior Member
 
Stefan Herbert
Join Date: Dec 2009
Location: Darmstadt, Germany
Posts: 129
Rep Power: 8
herbert is on a distinguished road
Okay,

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

Old   September 7, 2011, 17:48
Default
  #23
Member
 
Mohammad.R.Shetab
Join Date: Jul 2010
Posts: 49
Rep Power: 7
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

Reply

Tags
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 24 January 11, 2012 14:40
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 22:02.