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

Neumann boundary conditions

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 26, 2010, 06:02
Default
  #21
Cyp
Senior Member
 
Cyprien
Join Date: Feb 2010
Location: Stanford University
Posts: 299
Rep Power: 18
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, 07:47
Default
  #22
Senior Member
 
Stefan Herbert
Join Date: Dec 2009
Location: Darmstadt, Germany
Posts: 129
Rep Power: 18
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, 18:48
Default
  #23
Member
 
Mohammad.R.Shetab
Join Date: Jul 2010
Posts: 49
Rep Power: 16
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


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
mesh file for flow over a circular cylinder Ardalan Main CFD Forum 7 December 15, 2020 14:06
Impinging Jet Boundary Conditions Anindya Main CFD Forum 25 February 27, 2016 13:58
Concentric tube heat exchanger (Air-Water) Young CFX 5 October 7, 2008 00:17
Pressure boundary conditions Lionel S. Main CFD Forum 1 August 24, 2007 19:03
[Commercial meshers] Trimmed cell and embedded refinement mesh conversion issues michele OpenFOAM Meshing & Mesh Conversion 2 July 15, 2005 05:15


All times are GMT -4. The time now is 17:52.