|
[Sponsors] | |||||
|
|
|
#1 |
|
Senior Member
Nishant
Join Date: Mar 2009
Location: Glasgow, UK
Posts: 163
Rep Power: 6 ![]() |
Hi forum,
I am trying to implement the timeVaryingUniformTotalPressure boundary condition for the channel flow simulation in sonicFoam solver. I want to give a time varyingpressure condition at the inlet from the file inlet.dat. I havent used this BC before and I am having some problem in implementation. The solver failed to run with error message: gradientInternalCoeffs cannot be called for a genericFvPatchField (actual type timeVaryingUniformTotalPressure) on patch inlet of field p in file "/home/e343880/OpenFOAM/e343880-1.5/run/tutorials/sonicFoam/channel-sonic0-inletdat/0/p" You are probably trying to solve for a field with a generic boundary condition. From function genericFvPatchField<Type>::gradientInternalCoeffs( ) const in file fields/fvPatchFields/basic/generic/genericFvPatchField.C at line 692. The Make/options file in the solver reads: EXE_INC = \ -I$(LIB_SRC)/finiteVolume/lnInclude EXE_LIBS = -lfiniteVolume Do you have any idea where I am going wrong? regards, Nishant |
|
|
|
|
|
|
|
|
#2 |
|
Senior Member
Nishant
Join Date: Mar 2009
Location: Glasgow, UK
Posts: 163
Rep Power: 6 ![]() |
hi forum
I tried to recompile the folder: /home/e343880/OpenFOAM/OpenFOAM-1.5/src/finiteVolume then I noticed that there are some errors here. They are complaining about some error about undefined reference to the triSurface() function. I was wondering if this has something to do with the problem mentioned above? Error reported is: meshCutSurface.C .text+0x5b52): undefined reference to `Foam::triSurface: perator=(Foam::triSurface const&)'meshCutSurface.C .text+0x5b68): undefined reference to `Foam::triSurface::~triSurface()'meshCutSurface.C .text+0x5b76): undefined reference to `Foam::triSurface::~triSurface()'meshCutSurface.C .text+0x5d5f): undefined reference to `Foam::triSurface::~triSurface()'meshCutSurface.C .text+0x5d6d): undefined reference to `Foam::triSurface::~triSurface()'Make/linuxGccDPOpt/meshCutSurface.o: In function `Foam::meshCutSurface::~meshCutSurface()': meshCutSurface.C .text._ZN4Foam14meshCutSurfaceD1 Ev[Foam::meshCutSurface::~meshCutSurface()]+0x24): undefined reference to `Foam::triSurface::~triSurface()'Make/linuxGccDPOpt/meshCutSurface.o: In function `Foam: rientedSurface::~orientedSurface()':meshCutSurface.C .text._ZN4Foam15orientedSurfaceD 1Ev[Foam: rientedSurface::~orientedSurface()]+0x24): undefined reference to `Foam::triSurface::~triSurface()'Make/linuxGccDPOpt/meshCutSurface.o: In function `Foam::meshCutSurface::~meshCutSurface()': meshCutSurface.C.text._ZN4Foam14meshCutSurfaceD0Ev[Foam::meshCutSurface::~meshCutSurface()]+0x29): undefined reference to `Foam::triSurface::~triSurface()' Make/linuxGccDPOpt/meshCutSurface.o: In function `Foam:rientedSurface::~orientedSurface()': meshCutSurface.C .text._ZN4Foam15orientedSurfaceD0Ev[Foam:rientedSurface::~orientedSurface()]+0x29): undefined reference to `Foam::triSurface::~triSurface()' Make/linuxGccDPOpt/meshCutSurface.o.data.rel.ro._ZTVN4Foam14meshCutSu rfaceE[vtable for Foam::meshCutSurface]+0x10): undefined reference to `Foam::triSurface::movePoints(Foam::Field<Foam::Ve ctor<double> > const&)' Make/linuxGccDPOpt/meshCutSurface.o.data.rel.ro._ZTIN4Foam14meshCutSu rfaceE[typeinfo for Foam::meshCutSurface]+0x8): undefined reference to `typeinfo for Foam::triSurface' Make/linuxGccDPOpt/meshCutSurface.o.data.rel.ro._ZTVN4Foam15orientedS urfaceE[vtable for Foam:rientedSurface]+0x10): undefined reference to `Foam::triSurface::movePoints(Foam::Field<Foam::Ve ctor<double> > const&)' Make/linuxGccDPOpt/meshCutSurface.o.data.rel.ro._ZTIN4Foam15orientedS urfaceE[typeinfo for Foam:rientedSurface]+0x8): undefined reference to `typeinfo for Foam::triSurface collect2: ld returned 1 exit status make: *** [OpenFOAM.out] Error 1 regards, Nishant |
|
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Boundary Conditions | Thomas P. Abraham | Main CFD Forum | 19 | May 24, 2012 14:57 |
| How to set boundary condition in Fluent for the fo | Peiyong | FLUENT | 1 | November 10, 2006 11:44 |
| pressure boundary condition in fractional step | Jean-François Corbett | Main CFD Forum | 3 | January 10, 2006 08:49 |
| 1 and 2 Order Boundary condition at the same place | CFD_Flo | Main CFD Forum | 4 | July 11, 2005 11:57 |
| How to resolve boundary condition problem? | sam | FLUENT | 2 | July 20, 2003 02:19 |