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

Second Derivative Zero - Boundary Condition

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

Like Tree10Likes
  • 2 Post By eugene
  • 7 Post By eugene
  • 1 Post By waelitani

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 21, 2011, 05:52
Default Second Derivative Zero - Boundary Condition
  #1
New Member
 
Fu
Join Date: Jun 2010
Location: India
Posts: 4
Rep Power: 15
fu-ki-pa is on a distinguished road
Hi Everybody !

Greetings

I am doing a natural convection problem in which i want to put second derivative of a scalar =0. How can i implement it in openFoam?

Mathematically

\frac{d^2 T}{dx^2} = 0 or \frac{d^2 T}{dy^2} = 0

Thanks and Regards

Fuki
fu-ki-pa is offline   Reply With Quote

Old   June 22, 2011, 18:28
Default
  #2
Senior Member
 
Eugene de Villiers
Join Date: Mar 2009
Posts: 725
Rep Power: 21
eugene is on a distinguished road
There might be other ways, but I use a fixed gradient boundary and then set the gradient on the boundary equal to n.grad(f) in the near wall cell. So if the gradient normal to the wall is equal to that in the adjacent cell then the "gradient of the gradient" is zero. Of course this is explicit and therefore lags the solution by an iteration.

Eugene
verby and fu-ki-pa like this.
eugene is offline   Reply With Quote

Old   June 23, 2011, 04:56
Default
  #3
New Member
 
Fu
Join Date: Jun 2010
Location: India
Posts: 4
Rep Power: 15
fu-ki-pa is on a distinguished road
Thank a lot Eugene !
fu-ki-pa is offline   Reply With Quote

Old   June 25, 2011, 14:51
Default
  #4
Member
 
Mohammad.R.Shetab
Join Date: Jul 2010
Posts: 49
Rep Power: 15
mrshb4 is on a distinguished road
Dear Eugene

You're right, and that's smart!!
But would you tell me please how would you implement that fixedGradient boundary condition?! I think you would write a new boundary condition and edit the codes in fxedGradient, or do you have any other way?

Thank you
Mohammadreza
mrshb4 is offline   Reply With Quote

Old   June 27, 2011, 18:06
Default
  #5
Senior Member
 
Eugene de Villiers
Join Date: Mar 2009
Posts: 725
Rep Power: 21
eugene is on a distinguished road
No you don't edit fixedGradient. You find another boundary that is derived from fixedGradient, copy it to another name and then edit it.
eugene is offline   Reply With Quote

Old   June 28, 2011, 08:28
Default
  #6
New Member
 
jawed mustafa
Join Date: Jun 2011
Posts: 2
Rep Power: 0
jawed is on a distinguished road
Dear Eugene,
can you shed more light on its implementation

jawed
jawed is offline   Reply With Quote

Old   June 29, 2011, 05:05
Default
  #7
Senior Member
 
Eugene de Villiers
Join Date: Mar 2009
Posts: 725
Rep Power: 21
eugene is on a distinguished road
Well, you calculate the gradient of the field in question and then for each face in your boundary find the the cell adjacent to it. You then set the gradient on the boundary equal to the surface normal component of the gradient in the near-wall cell. To make things more cost-effective, you probably want to calculate the gradient once per iteration and then store it in the database.

Attached should be an old version of such a boundary I made for use with boundaryFoam. Note it does not have any cost-reduction measures in place - you will have to figure these out yourself.
Attached Files
File Type: gz extrapolatedGradient.tar.gz (1.8 KB, 299 views)
chegdan, fu-ki-pa, jawed and 4 others like this.
eugene is offline   Reply With Quote

Old   June 29, 2011, 05:57
Default
  #8
New Member
 
jawed mustafa
Join Date: Jun 2011
Posts: 2
Rep Power: 0
jawed is on a distinguished road
Dear Eugene,
it seems to work thanks for the patch

jawed
jawed is offline   Reply With Quote

Old   July 3, 2011, 21:58
Default
  #9
Member
 
Mohammad.R.Shetab
Join Date: Jul 2010
Posts: 49
Rep Power: 15
mrshb4 is on a distinguished road
Dear Eugene,

Would you please tell me how to compile your bc. I have both openFOAMs 1.5-dev & 1.7.1. In 1.5-dev it has an error finding "uniformDimensionedFields.H". It seems that there is no such file in OF-1.5-dev. But in 1.7.1 it would give another error that is:


Quote:
/usr/lib/gcc/i486-linux-gnu/4.4.3/../../../../lib/crt1.o: In function `_start':
(.text+0x18): undefined reference to `main'
Make/linuxGccSPOpt/nearWallDist.o: In function `Foam::nearWallDist::doAll()':
nearWallDist.C.text+0x19b): undefined reference to `Foam::cellDistFuncs::cellDistFuncs(FoamlyMesh const&)'
nearWallDist.C.text+0x1c9): undefined reference to `Foam::cellDistFuncs::maxPatchSize(Foam::HashSet<i nt, Foam::Hash<int> > const&) const'
nearWallDist.C.text+0x2f9): undefined reference to `Foam::cellDistFuncs::getPointNeighbours(Foam::Pri mitivePatch<Foam::face, Foam::SubList, Foam::Field<Foam::Vector<float> > const&, Foam::Vector<float> > const&, int, Foam::List<int>&) const'
nearWallDist.C.text+0x34a): undefined reference to `Foam::cellDistFuncs::smallestDist(Foam::Vector<fl oat> const&, FoamlyPatch const&, int, Foam::List<int> const&, int&) const'
Make/linuxGccSPOpt/wallDist.o: In function `Foam::wallDist::correct()':
wallDist..text+0x2ad): undefined reference to `Foam:atchWave:atchWave(FoamlyMesh const&, Foam::HashSet<int, Foam::Hash<int> > const&, bool)'
wallDist.C.text+0x58b): undefined reference to `Foam:atchWave::~patchWave()'
wallDist.C.text+0x640): undefined reference to `Foam:atchWave::~patchWave()'
Make/linuxGccSPOpt/wallDist.o: In function `Foam::wallDist::wallDist(Foam::fvMesh const&, bool)':
wallDist.C.text+0xeba): undefined reference to `Foam::cellDistFuncs::cellDistFuncs(FoamlyMesh const&)'
Make/linuxGccSPOpt/wallDist.o: In function `Foam::wallDist::wallDist(Foam::fvMesh const&, bool)':
wallDist.C.text+0x124a): undefined reference to `Foam::cellDistFuncs::cellDistFuncs(FoamlyMesh const&)'
Make/linuxGccSPOpt/wallDistReflection.o: In function `Foam::FaceCellWave<Foam::wallPointData<Foam::Vect or<float> > >::readFaces(int&, Foam::List<int>&, Foam::List<Foam::wallPointData<Foam::Vector<float> > >&, Foam::Istream&)':
wallDistReflection.C.text._ZN4Foam12FaceCellWaveIN S_13wallPointDataINS_6VectorIfEEEEE9readFacesERiRN S_4ListIiEERNS7_IS4_EERNS_7IstreamE[Foam::FaceCellWave<Foam::wallPointData<Foam::Vecto r<float> > >::readFaces(int&, Foam::List<int>&, Foam::List<Foam::wallPointData<Foam::Vector<float> > >&, Foam::Istream&)]+0x9e): undefined reference to `Foamerator>>(Foam::Istream&, Foam::wallPoint&)'
Make/linuxGccSPOpt/wallDistReflection.o: In function `Foam::FaceCellWave<Foam::wallPointData<Foam::Vect or<float> > >::writeFaces(int, Foam::List<int> const&,
.
.
.
.
.
`Foam::directMappedVelocityFluxFixedValueFvPatchFi eld::directMappedVelocityFluxFixedValueFvPatchFiel d(Foam::fvPatch const&, Foam:imensionedField<Foam::Vector<float>, Foam::volMesh> const&, Foam::dictionary const&)':
directMappedVelocityFluxFixedValueFvPatchField.C.t ext+0x2bea): undefined reference to `typeinfo for Foam::directMappedPatchBase'
directMappedVelocityFluxFixedValueFvPatchField.C.t ext+0x2c15): undefined reference to `typeinfo for Foam::directMappedPolyPatch'
directMappedVelocityFluxFixedValueFvPatchField.C.t ext+0x2d40): undefined reference to `Foam::directMappedPatchBase::typeName'
directMappedVelocityFluxFixedValueFvPatchField.C.t ext+0x2e27): undefined reference to `Foam::directMappedPatchBase::calcMapping() const'
directMappedVelocityFluxFixedValueFvPatchField.C.t ext+0x3043): undefined reference to `Foam::directMappedPolyPatch::typeName'
directMappedVelocityFluxFixedValueFvPatchField.Cte xt+0x306b): undefined reference to `typeinfo for Foam::directMappedPolyPatch'
Make/linuxGccSPOpt/directMappedVelocityFluxFixedValueFvPatchField.o: In function `Foam::directMappedVelocityFluxFixedValueFvPatchFi eld::directMappedVelocityFluxFixedValueFvPatchFiel d(Foam::fvPatch const&, Foam:imensionedField<Foam::Vector<float>, Foam::volMesh> const&, Foam::dictionary const&)':
directMappedVelocityFluxFixedValueFvPatchField.C.t ext+0x319a): undefined reference to `typeinfo for Foam::directMappedPatchBase'
directMappedVelocityFluxFixedValueFvPatchField.C.t ext+0x31c5): undefined reference to `typeinfo for Foam::directMappedPolyPatch'
directMappedVelocityFluxFixedValueFvPatchField.C.t ext+0x32f0): undefined reference to `Foam::directMappedPatchBase::typeName'
directMappedVelocityFluxFixedValueFvPatchField.C.t ext+0x33d7): undefined reference to `Foam::directMappedPatchBase::calcMapping() const'
directMappedVelocityFluxFixedValueFvPatchField.C.t ext+0x35f3): undefined reference to `Foam::directMappedPolyPatch::typeName'
directMappedVelocityFluxFixedValueFvPatchField.C.t ext+0x361b): undefined
timeVaryingMappedPressureDirectedInletVelocityFvPa tchVectorField.C.text._ZN4Foam39timeVaryingMappedF ixedValueFvPatchFieldINS_6VectorIfEEE16readSampleP ointsEv[Foam::timeVaryingMappedFixedValueFvPatchField<Foam ::Vector<float> >::readSamplePoints()]+0x75d): undefined reference to `Foam::triSurface::write(Foam::fileName const&, bool) const'
timeVaryingMappedPressureDirectedInletVelocityFvPa tchVectorField.C.text._ZN4Foam39timeVaryingMappedF ixedValueFvPatchFieldINS_6VectorIfEEE16readSampleP ointsEv[Foam::timeVaryingMappedFixedValueFvPatchField<Foam ::Vector<float> >::readSamplePoints()]+0xa1d): undefined reference to `Foam::triSurfaceTools::calcInterpolationWeights(F oam::triSurface const&, Foam::Field<Foam::Vector<float> > const&, Foam::List<Foam::FixedList<int, 3u> >&, Foam::List<Foam::FixedList<float, 3u> >&)'
timeVaryingMappedPressureDirectedInletVelocityFvPa tchVectorField.C.text._ZN4Foam39timeVaryingMappedF ixedValueFvPatchFieldINS_6VectorIfEEE16readSampleP ointsEv[Foam::timeVaryingMappedFixedValueFvPatchField<Foam ::Vector<float> >::readSamplePoints()]+0xc12): undefined reference to `Foam::triSurface::~triSurface()'
timeVaryingMappedPressureDirectedInletVelocityFvPa tchVectorField.C.text._ZN4Foam39timeVaryingMappedF ixedValueFvPatchFieldINS_6VectorIfEEE16readSampleP ointsEv[Foam::timeVaryingMappedFixedValueFvPatchField<Foam ::Vector<float> >::readSamplePoints()]+0x15a9): undefined reference to `Foam::triSurface::~triSurface()'
Make/linuxGccSPOpt/timeVaryingMappedFixedValueFvPatchFields.o: In function `Foam::timeVaryingMappedFixedValueFvPatchField<flo at>::readSamplePoints()':
timeVaryingMappedFixedValueFvPatchFields.C.text._Z N4Foam39timeVaryingMappedFixedValueFvPatchFieldIfE 16readSamplePointsEv[Foam::timeVaryingMappedFixedValueFvPatchField<floa t>::readSamplePoints()]+0x4e9): undefined reference to `Foam::coordinateSystem::coordinateSystem(Foam::wo rd const&, Foam::Vector<float> const&, Foam::Vector<float> const&, Foam::Vector<float> const&)'
timeVaryingMappedFixedValueFvPatchFields.C.text._Z N4Foam39timeVaryingMappedFixedValueFvPatchFieldIfE 16readSamplePointsEv[Foam::timeVaryingMappedFixedValueFvPatchField<floa t>::readSamplePoints()]+0x5f9): undefined reference to `Foam::triSurfaceTools::delaunay2D(Foam::List<Foam ::Vector2D<float> > const&)'
timeVaryingMappedFixedValueFvPatchFields.C.text._Z N4Foam39timeVaryingMappedFixedValueFvPatchFieldIfE 16readSamplePointsEv[Foam::timeVaryingMappedFixedValueFvPatchField<floa t>::readSamplePoints()]+0x725): undefined reference to `Foam::triSurface::write(Foam::fileName const&, bool) const'
timeVaryingMappedFixedValueFvPatchFields.C.text._Z N4Foam39timeVaryingMappedFixedValueFvPatchFieldIfE 16readSamplePointsEv[Foam::timeVaryingMappedFixedValueFvPatchField<floa t>::readSamplePoints()]+0x9e5): undefined reference to `Foam::triSurfaceTools::calcInterpolationWeights(F oam::triSurface const&, Foam::Field<Foam::Vector<float> > const&, Foam::List<Foam::FixedList<int, 3u> >&, Foam::List<Foam::FixedList<float, 3u> >&)'
timeVaryingMappedFixedValueFvPatchFields.C.text._Z N4Foam39timeVaryingMappedFixedValueFvPatchFieldIfE 16readSamplePointsEv[Foam::timeVaryingMappedFixedValueFvPatchField<floa t>::readSamplePoints()]+0xbcb): undefined reference to `Foam::triSurface::~triSurface()'
timeVaryingMappedFixedValueFvPatchFields.C.text._Z N4Foam39timeVaryingMappedFixedValueFvPatchFieldIfE 16readSamplePointsEv[Foam::timeVaryingMappedFixedValueFvPatchField<floa t>::readSamplePoints()]+0x156c): undefined reference to `Foam::triSurface::~triSurface()'
Make/linuxGccSPOpt/timeVaryingMappedFixedValueFvPatchFields.o: In function `Foam::timeVaryingMappedFixedValueFvPatchField<Foa m::Tensor<float> >::readSamplePoints()':
timeVaryingMappedFixedValueFvPatchFields.C.text._Z N4Foam39timeVaryingMappedFixedValueFvPatchFieldINS _6TensorIfEEE16readSamplePointsEv[Foam::timeVaryingMappedFixedValueFvPatchField<Foam ::Tensor<float> >::readSamplePoints()]+0x4e9): undefined reference to `Foam::coordinateSystem::coordinateSystem(Foam::wo rd const&, Foam::Vector<float> const&, Foam::Vector<float> const&, Foam::Vector<float> const&)'
timeVaryingMappedFixedValueFvPatchFields.C.text._Z N4Foam39timeVaryingMappedFixedValueFvPatchFieldINS _6TensorIfEEE16readSamplePointsEv[Foam::timeVaryingMappedFixedValueFvPatchField<Foam ::Tensor<float> >::readSamplePoints()]+0x5f9): undefined reference to `Foam::triSurfaceTools::delaunay2D(Foam::List<Foam ::Vector2D<float> > const&)'
timeVaryingMappedFixedValueFvPatchFields.C.text._Z N4Foam39timeVaryingMappedFixedValueFvPatchFieldINS _6TensorIfEEE16readSamplePointsEv[Foam::timeVaryingMappedFixedValueFvPatchField<Foam ::Tensor<float> >::readSamplePoints()]+0x725): undefined reference to `Foam::triSurface::write(Foam::fileName const&, bool) const'
timeVaryingMappedFixedValueFvPatchFields.C.text._Z N4Foam39timeVaryingMappedFixedValueFvPatchFieldINS _6TensorIfEEE16readSamplePointsEv[Foam::timeVaryingMappedFixedValueFvPatchField<Foam ::Tensor<float> >::readSamplePoints()]+0x9e5): undefined reference to `Foam::triSurfaceTools::calcInterpolationWeights(F oam::triSurface const&, Foam::Field<Foam::Vector<float> > const&, Foam::List<Foam::FixedList<int, 3u> >&, Foam::List<Foam::FixedList<float, 3u> >&)'
timeVaryingMappedFixedValueFvPatchFields.C.text._Z N4Foam39timeVaryingMappedFixedValueFvPatchFieldINS _6TensorIfEEE16readSamplePointsEv[Foam::timeVaryingMappedFixedValueFvPatchField<Foam ::Tensor<float> >::readSamplePoints()]+0xbcb): undefined reference to `Foam::triSurface::~triSurface()'
timeVaryingMappedFixedValueFvPatchFields.C.text._Z N4Foam39timeVaryingMappedFixedValueFvPatchFieldINS _6TensorIfEEE16readSamplePointsEv[Foam::timeVaryingMappedFixedValueFvPatchField<Foam ::Tensor<float> >::readSamplePoints()]+0x156c): undefined reference to `Foam::triSurface::~triSurface()'
Make/linuxGccSPOpt/timeVaryingMappedFixedValueFvPatchFields.o: In function `Foam::timeVaryingMappedFixedValueFvPatchField<Foa m::SphericalTensor<float> >::readSamplePoints()':
timeVaryingMappedFixedValueFvPatchFields.C.text._Z N4Foam39timeVaryingMappedFixedValueFvPatchFieldINS _15SphericalTensorIfEEE16readSamplePointsEv[Foam::timeVaryingMappedFixedValueFvPatchField<Foam ::SphericalTensor<float> >::readSamplePoints()]+0x4e9): undefined reference to `Foam::coordinateSystem::coordinateSystem(Foam::wo rd const&, Foam::Vector<float> const&, Foam::Vector<float> const&, Foam::Vector<float> const&)'
timeVaryingMappedFixedValueFvPatchFields.C.text._Z N4Foam39timeVaryingMappedFixedValueFvPatchFieldINS _15SphericalTensorIfEEE16readSamplePointsEv[Foam::timeVaryingMappedFixedValueFvPatchField<Foam ::SphericalTensor<float> >::readSamplePoints()]+0x5f9): undefined reference to `Foam::triSurfaceTools::delaunay2D(Foam::List<Foam ::Vector2D<float> > const&)'
timeVaryingMappedFixedValueFvPatchFields.C.text._Z N4Foam39timeVaryingMappedFixedValueFvPatchFieldINS _15SphericalTensorIfEEE16readSamplePointsEv[Foam::timeVaryingMappedFixedValueFvPatchField<Foam ::SphericalTensor<float> >::readSamplePoints()]+0x725): undefined reference to `Foam::triSurface::write(Foam::fileName const&, bool) const'
timeVaryingMappedFixedValueFvPatchFields.C.text._Z N4Foam39timeVaryingMappedFixedValueFvPatchFieldINS _15SphericalTensorIfEEE16readSamplePointsEv[Foam::timeVaryingMappedFixedValueFvPatchField<Foam ::SphericalTensor<float> >::readSamplePoints()]+0x9e5): undefined reference to `Foam::triSurfaceTools::calcInterpolationWeights(F oam::triSurface const&, Foam::Field<Foam::Vector<float> > const&, Foam::List<Foam::FixedList<int, 3u> >&, Foam::List<Foam::FixedList<float, 3u> >&)'
timeVaryingMappedFixedValueFvPatchFields.C.text._Z N4Foam39timeVaryingMappedFixedValueFvPatchFieldINS _15SphericalTensorIfEEE16readSamplePointsEv[Foam::timeVaryingMappedFixedValueFvPatchField<Foam ::SphericalTensor<float> >::readSamplePoints()]+0xbcb): undefined reference to `Foam::triSurface::~triSurface()'
timeVaryingMappedFixedValueFvPatchFields.C.text._Z N4Foam39timeVaryingMappedFixedValueFvPatchFieldINS _15SphericalTensorIfEEE16readSamplePointsEv[Foam::timeVaryingMappedFixedValueFvPatchField<Foam ::SphericalTensor<float> >::readSamplePoints()]+0x156c): undefined reference to `Foam::triSurface::~triSurface()'
Make/linuxGccSPOpt/timeVaryingMappedFixedValueFvPatchFields.o: In function `Foam::timeVaryingMappedFixedValueFvPatchField<Foa m::SymmTensor<float> >::readSamplePoints()':
timeVaryingMappedFixedValueFvPatchFields.C.text._Z N4Foam39timeVaryingMappedFixedValueFvPatchFieldINS _10SymmTensorIfEEE16readSamplePointsEv[Foam::timeVaryingMappedFixedValueFvPatchField<Foam ::SymmTensor<float> >::readSamplePoints()]+0x4e9): undefined reference to `Foam::coordinateSystem::coordinateSystem(Foam::wo rd const&, Foam::Vector<float> const&, Foam::Vector<float> const&, Foam::Vector<float> const&)'
timeVaryingMappedFixedValueFvPatchFields.C.text._Z N4Foam39timeVaryingMappedFixedValueFvPatchFieldINS _10SymmTensorIfEEE16readSamplePointsEv[Foam::timeVaryingMappedFixedValueFvPatchField<Foam ::SymmTensor<float> >::readSamplePoints()]+0x5f9): undefined reference to `Foam::triSurfaceTools::delaunay2D(Foam::List<Foam ::Vector2D<float> > const&)'
timeVaryingMappedFixedValueFvPatchFields.C.text._Z N4Foam39timeVaryingMappedFixedValueFvPatchFieldINS _10SymmTensorIfEEE16readSamplePointsEv[Foam::timeVaryingMappedFixedValueFvPatchField<Foam ::SymmTensor<float> >::readSamplePoints()]+0x725): undefined reference to `Foam::triSurface::write(Foam::fileName const&, bool) const'
timeVaryingMappedFixedValueFvPatchFields.C.text._Z N4Foam39timeVaryingMappedFixedValueFvPatchFieldINS _10SymmTensorIfEEE16readSamplePointsEv[Foam::timeVaryingMappedFixedValueFvPatchField<Foam ::SymmTensor<float> >::readSamplePoints()]+0x9e5): undefined reference to `Foam::triSurfaceTools::calcInterpolationWeights(F oam::triSurface const&, Foam::Field<Foam::Vector<float> > const&, Foam::List<Foam::FixedList<int, 3u> >&, Foam::List<Foam::FixedList<float, 3u> >&)'
timeVaryingMappedFixedValueFvPatchFields.C.text._Z N4Foam39timeVaryingMappedFixedValueFvPatchFieldINS _10SymmTensorIfEEE16readSamplePointsEv[Foam::timeVaryingMappedFixedValueFvPatchField<Foam ::SymmTensor<float> >::readSamplePoints()]+0xbcb): undefined reference to `Foam::triSurface::~triSurface()'
timeVaryingMappedFixedValueFvPatchFields.C.text._Z N4Foam39timeVaryingMappedFixedValueFvPatchFieldINS _10SymmTensorIfEEE16readSamplePointsEv[Foam::timeVaryingMappedFixedValueFvPatchField<Foam ::SymmTensor<float> >::readSamplePoints()]+0x156c): undefined reference to `Foam::triSurface::~triSurface()'
Make/linuxGccSPOpt/porousZone.o: In function `FoamrousZone::writeDict(Foam::Ostream&, bool) const':
porousZone.C.text+0x1224): undefined reference to `Foam::coordinateSystem::writeDict(Foam::Ostream&, bool) const'
Make/linuxGccSPOpt/porousZone.o: In function `FoamrousZonerousZone(Foam::word const&, Foam::fvMesh const&, Foam::dictionary const&)':
porousZone.C.text+0x1813): undefined reference to `Foam::coordinateSystem::coordinateSystem(Foam::di ctionary const&, Foam:bjectRegistry const&)'
porousZone.C.text+0x2b84): undefined reference to `Foam::coordinateSystem::~coordinateSystem()'
Make/linuxGccSPOpt/porousZone.o: In function `FoamrousZonerousZone(Foam::word const&, Foam::fvMesh const&, Foam::dictionary const&)':
porousZone.C.text+0x2df3): undefined reference to `Foam::coordinateSystem::coordinateSystem(Foam::di ctionary const&, Foam:bjectRegistry const&)'
porousZone.C.text+0x4103): undefined reference to `Foam::coordinateSystem::~coordinateSystem()'
Make/linuxGccSPOpt/porousZone.o: In function `FoamrousZone::~porousZone()':
porousZone.C.text._ZN4Foam10porousZoneD1Ev[FoamousZone::~porousZone()]+0x4f): undefined reference to `Foam::coordinateSystem::~coordinateSystem()'
Make/linuxGccSPOpt/porousZone.o: In function `FoamrousZone::~porousZone()':
porousZone.C.text._ZN4Foam10porousZoneD0Ev[FoamrousZone::~porousZone()]+0x53): undefined reference to `Foam::coordinateSystem::~coordinateSystem()'
Make/linuxGccSPOpt/MRFZone.o: In function `Foam::MRFZone::setMRFFaces()':
MRFZone.C.text+0x194a): undefined reference to `Foam::faceSet::faceSet(FoamlyMesh const&, Foam::word const&, Foam::HashSet<int, Foam::Hash<int> > const&, Foam::IOobject::writeOption)'
MRFZone.C.text+0x1a98): undefined reference to `Foam::faceSet::faceSet(FoamlyMesh const&, Foam::word const&, int, Foam::IOobject::writeOption)'
MRFZone.C.text+0x1f67): undefined reference to `Foam::faceSet::~faceSet()'
MRFZone.C.text+0x1f75): undefined reference to `Foam::faceSet::~faceSet()'
MRFZone.C.text+0x1f83): undefined reference to `Foam::faceSet::~faceSet()'
MRFZone.C.text+0x21d4): undefined reference to `Foam::faceSet::faceSet(FoamlyMesh const&, Foam::word const&, int, Foam::IOobject::writeOption)'
MRFZone.C.text+0x26b9): undefined reference to `Foam::faceSet::~faceSet()'
MRFZone.C.text+0x2720): undefined reference to `Foam::faceSet::~faceSet()'
MRFZone.C.text+0x2766): undefined reference to `Foam::faceSet::~faceSet()'
MRFZone.C.text+0x27aa): undefined reference to `Foam::faceSet::~faceSet()'
Make/linuxGccSPOpt/pressureGradientExplicitSource.o: In function `Foam:ressureGradientExplicitSource:ressureGradien tExplicitSource(Foam::word const&, Foam::GeometricField<Foam::Vector<float>, Foam::fvPatchField, Foam::volMesh>&)':
pressureGradientExplicitSource.C.text+0x559): undefined reference to `Foam::topoSetSource::New(Foam::word const&, Foam:olyMesh const&, Foam::dictionary const&)'
pressureGradientExplicitSource.C.text+0x61c): undefined reference to `Foam::cellSet::cellSet(FoamlyMesh const&, Foam::word const&, int, Foam::IOobject::writeOption)'
pressureGradientExplicitSource.C.text+0xe87): undefined reference to `Foam::cellSet::~cellSet()'
Make/linuxGccSPOpt/pressureGradientExplicitSource.o: In function `Foam:ressureGradientExplicitSource:ressureGradien tExplicitSource(Foam::word const&, Foam::GeometricField<Foam::Vector<float>, Foam::fvPatchField, Foam::volMesh>&)':
pressureGradientExplicitSource.C.text+0x1759): undefined reference to `Foam::topoSetSource::New(Foam::word const&, FoamlyMesh const&, Foam::dictionary const&)'
pressureGradientExplicitSource.C.text+0x181c): undefined reference to `Foam::cellSet::cellSet(FoamlyMesh const&, Foam::word const&, int, Foam::IOobject::writeOption)'
pressureGradientExplicitSource.C.text+0x2087): undefined reference to `Foam::cellSet::~cellSet()'
Make/linuxGccSPOpt/basicSource.o: In function `Foam::basicSource::setCellSet()':
basicSource.C.text+0x1430): undefined reference to `Foam::cellSet::cellSet(FoamlyMesh const&, Foam::word const&, Foam::IOobject::readOption, Foam::IOobject::writeOption)'
basicSource.C.text+0x147d): undefined reference to `Foam::cellSet::~cellSet()'
basicSource.C.text+0x164c): undefined reference to `Foam::cellSet::~cellSet()'
collect2: ld returned 1 exit status
make: *** [OpenFOAM.out] Error 1
I just copy the extrapolatedGradient folder in the path :

/home/mrshb4/OpenFOAM/OpenFOAM-1.7.1/src/finiteVolume/fields/fvPatchFields/basic/extrapolatedGradient

could you please tell me how can I compile that?!!

Thanks
Mohammadreza
mrshb4 is offline   Reply With Quote

Old   December 23, 2013, 08:17
Default
  #10
Member
 
Thamali
Join Date: Jul 2013
Posts: 67
Rep Power: 12
Thamali is on a distinguished road
Did you get through these errors,although it is too late to ask this from you.I got similar type of errors.Il put them below.Please see whether you can help me.Im stucked at this point for some days.

thamali@thamali-VirtualBox:~/OpenFOAM/thamali-2.2.2/applications/solvers/my_fireFoam11$ Make/linuxGccDPOpt/my_fireFoam.o: In function `Foam::fv::laplacianScheme<double, Foam::Vector<double> >::New(Foam::fvMesh const&, Foam::Istream&)':
my_fireFoam.C.text._ZN4Foam2fv15laplacianSchemeI dNS_6VectorIdEEE3NewERKNS_6fvMeshERNS_7IstreamE[Foam::fv::laplacianScheme<double, Foam::Vector<double> >::New(Foam::fvMesh const&, Foam::Istream&)]+0x53): undefined reference to `Foam::fv::laplacianScheme<double, Foam::Vector<double> >::IstreamConstructorTablePtr_'
my_fireFoam.C.text._ZN4Foam2fv15laplacianSchemeI dNS_6VectorIdEEE3NewERKNS_6fvMeshERNS_7IstreamE[Foam::fv::laplacianScheme<double, Foam::Vector<double> >::New(Foam::fvMesh const&, Foam::Istream&)]+0x1a5): undefined reference to `Foam::fv::laplacianScheme<double, Foam::Vector<double> >::IstreamConstructorTablePtr_'
my_fireFoam.C.text._ZN4Foam2fv15laplacianSchemeI dNS_6VectorIdEEE3NewERKNS_6fvMeshERNS_7IstreamE[Foam::fv::laplacianScheme<double, Foam::Vector<double> >::New(Foam::fvMesh const&, Foam::Istream&)]+0x1d5): undefined reference to `Foam::fv::laplacianScheme<double, Foam::Vector<double> >::IstreamConstructorTablePtr_'
collect2: ld returned 1 exit status
make: *** [/home/thamali/OpenFOAM/thamali-2.2.2/platforms/linuxGccDPOpt/bin/my_fireFoam] Error 1
Thamali is offline   Reply With Quote

Old   May 1, 2014, 17:26
Default
  #11
New Member
 
Join Date: May 2013
Posts: 3
Rep Power: 12
Dan_Sobien is on a distinguished road
Quote:
Originally Posted by eugene View Post
Attached should be an old version of such a boundary I made for use with boundaryFoam. Note it does not have any cost-reduction measures in place - you will have to figure these out yourself.
Would it be possible to edit this patch type to include vectors as well? Thanks for any advice or info.
Dan_Sobien is offline   Reply With Quote

Old   March 27, 2021, 05:28
Default Updated
  #12
New Member
 
Wael Itani
Join Date: Mar 2021
Posts: 2
Rep Power: 0
waelitani is on a distinguished road
I have modified the extrapolated Gradient boundary condition above to work with OpenFOAM v8.

Enjoy,
Attached Files
File Type: zip extrapolatedGradient.zip (76.9 KB, 51 views)
dimasbarile likes this.
waelitani is offline   Reply With Quote

Reply

Tags
boundary condition, natural convection, openfoam

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Boundary Conditions Thomas P. Abraham Main CFD Forum 20 July 7, 2013 06:05
inlet velocity boundary condition murali CFX 5 August 3, 2012 09:56
External Radiation Boundary Condition for Grid Interface CFD XUE FLUENT 0 July 9, 2010 03:53
External Radiation Boundary Condition (Two sided wall), Grid Interface CFD XUE FLUENT 0 July 8, 2010 07:49
problem with boundary condition??? smn CFX 5 November 24, 2009 07:37


All times are GMT -4. The time now is 23:30.