|
[Sponsors] | |||||
|
|
|
#21 |
|
Senior Member
Cyprien
Join Date: Feb 2010
Location: France, Toulouse
Posts: 179
Rep Power: 6 ![]() |
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) |
|
|
|
|
|
|
|
|
#22 |
|
Senior Member
Stefan Herbert
Join Date: Dec 2009
Location: Darmstadt, Germany
Posts: 128
Rep Power: 6 ![]() |
Okay,
I was just confused because of your nomenclature...
|
|
|
|
|
|
|
|
|
#23 |
|
Member
Mohammad.R.Shetab
Join Date: Jul 2010
Posts: 46
Rep Power: 4 ![]() |
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 |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Impinging Jet Boundary Conditions | Anindya | Main CFD Forum | 24 | January 11, 2012 13: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 |