|
[Sponsors] |
October 26, 2010, 06:02 |
|
#21 |
Senior Member
Cyprien
Join Date: Feb 2010
Location: Stanford University
Posts: 299
Rep Power: 18 |
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) |
|
October 26, 2010, 07:47 |
|
#22 |
Senior Member
Stefan Herbert
Join Date: Dec 2009
Location: Darmstadt, Germany
Posts: 129
Rep Power: 17 |
Okay,
I was just confused because of your nomenclature... |
|
September 7, 2011, 18:48 |
|
#23 |
Member
Mohammad.R.Shetab
Join Date: Jul 2010
Posts: 49
Rep Power: 16 |
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?! |
|
Tags |
boundary conditions, fixedgradient, neumann |
|
|
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 |