CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   timeVaryingUniformTotalPressure boundary condition (https://www.cfd-online.com/Forums/openfoam-solving/66574-timevaryinguniformtotalpressure-boundary-condition.html)

nishant_hull July 19, 2009 15:45

timeVaryingUniformTotalPressure boundary condition
 
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

nishant_hull July 22, 2009 11:56

re:
 
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::operator=(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::orientedSurface::~orientedSurface()':
meshCutSurface.C:(.text._ZN4Foam15orientedSurfaceD 1Ev[Foam::orientedSurface::~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


All times are GMT -4. The time now is 18:32.