|
[Sponsors] |
Trouble declaring DimensionedField for triSurfaceGeoMesh |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
March 2, 2012, 09:27 |
Trouble declaring DimensionedField for triSurfaceGeoMesh
|
#1 |
Super Moderator
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,089
Rep Power: 34 |
Hi,
I am trying to create a triSurfaceVectorField, but I can't get the code to compile. I have tried: Code:
//- create triSurface from stl file triSurface stlSurf("test.stl"); //- create triSurfaceGeoMesh from triSurface triSurfaceGeoMesh stlMesh(stlSurf); //- try to create triSurfaceVectorField but it doesn't like this constructor triSurfaceVectorField stlVecField ( IOobject ( "stlVecField", runTime.timeName(), runTime, IOobject::NO_READ, IOobject::AUTO_WRITE ), stlMesh, dimensionedVector("zero", dimForce/dimArea, vector::zero) ); Here is the compilation error: Code:
hillSurfSolidFoam.C:89: error: no matching function for call to ‘Foam::DimensionedField<Foam::Vector<double>, Foam::triSurfaceGeoMesh>::DimensionedField(Foam::IOobject, Foam::triSurfaceGeoMesh&, Foam::dimensionedVector)’ /Users/philipc/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/DimensionedField.C:238: note: candidates are: Foam::DimensionedField<Type, GeoMesh>::DimensionedField(const Foam::word&, const Foam::tmp<Foam::DimensionedField<Type, GeoMesh> >&) [with Type = Foam::Vector<double>, GeoMesh = Foam::triSurfaceGeoMesh] /Users/philipc/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/DimensionedField.C:223: note: Foam::DimensionedField<Type, GeoMesh>::DimensionedField(const Foam::word&, const Foam::Xfer<Foam::DimensionedField<Type, GeoMesh> >&) [with Type = Foam::Vector<double>, GeoMesh = Foam::triSurfaceGeoMesh] /Users/philipc/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/DimensionedField.C:209: note: Foam::DimensionedField<Type, GeoMesh>::DimensionedField(const Foam::word&, Foam::DimensionedField<Type, GeoMesh>&, bool) [with Type = Foam::Vector<double>, GeoMesh = Foam::triSurfaceGeoMesh] /Users/philipc/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/DimensionedField.C:194: note: Foam::DimensionedField<Type, GeoMesh>::DimensionedField(const Foam::word&, const Foam::DimensionedField<Type, GeoMesh>&) [with Type = Foam::Vector<double>, GeoMesh = Foam::triSurfaceGeoMesh] /Users/philipc/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/DimensionedField.C:180: note: Foam::DimensionedField<Type, GeoMesh>::DimensionedField(const Foam::IOobject&, const Foam::DimensionedField<Type, GeoMesh>&) [with Type = Foam::Vector<double>, GeoMesh = Foam::triSurfaceGeoMesh] /Users/philipc/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/DimensionedField.C:159: note: Foam::DimensionedField<Type, GeoMesh>::DimensionedField(const Foam::tmp<Foam::DimensionedField<Type, GeoMesh> >&) [with Type = Foam::Vector<double>, GeoMesh = Foam::triSurfaceGeoMesh] /Users/philipc/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/DimensionedField.C:145: note: Foam::DimensionedField<Type, GeoMesh>::DimensionedField(const Foam::Xfer<Foam::DimensionedField<Type, GeoMesh> >&) [with Type = Foam::Vector<double>, GeoMesh = Foam::triSurfaceGeoMesh] /Users/philipc/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/DimensionedField.C:132: note: Foam::DimensionedField<Type, GeoMesh>::DimensionedField(Foam::DimensionedField<Type, GeoMesh>&, bool) [with Type = Foam::Vector<double>, GeoMesh = Foam::triSurfaceGeoMesh] /Users/philipc/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/DimensionedField.C:114: note: Foam::DimensionedField<Type, GeoMesh>::DimensionedField(const Foam::DimensionedField<Type, GeoMesh>&) [with Type = Foam::Vector<double>, GeoMesh = Foam::triSurfaceGeoMesh] /Users/philipc/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/DimensionedFieldIO.C:59: note: Foam::DimensionedField<Type, GeoMesh>::DimensionedField(const Foam::IOobject&, const typename GeoMesh::Mesh&, const Foam::word&) [with Type = Foam::Vector<double>, GeoMesh = Foam::triSurfaceGeoMesh] /Users/philipc/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/DimensionedField.C:101: note: Foam::DimensionedField<Type, GeoMesh>::DimensionedField(const Foam::IOobject&, const typename GeoMesh::Mesh&, const Foam::dimensioned<Type>&) [with Type = Foam::Vector<double>, GeoMesh = Foam::triSurfaceGeoMesh] /Users/philipc/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/DimensionedField.C:86: note: Foam::DimensionedField<Type, GeoMesh>::DimensionedField(const Foam::IOobject&, const typename GeoMesh::Mesh&, const Foam::dimensionSet&) [with Type = Foam::Vector<double>, GeoMesh = Foam::triSurfaceGeoMesh] /Users/philipc/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/DimensionedField.C:58: note: Foam::DimensionedField<Type, GeoMesh>::DimensionedField(const Foam::IOobject&, const typename GeoMesh::Mesh&, const Foam::dimensionSet&, const Foam::Field<Type>&) [with Type = Foam::Vector<double>, GeoMesh = Foam::triSurfaceGeoMesh] make: *** [Make/darwinIntel64GccDPOpt/hillSurfSolidFoam.o] Error 1 Philip |
|
March 2, 2012, 09:54 |
|
#2 |
Super Moderator
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,089
Rep Power: 34 |
OK,
It works if I use triSurfaceMesh instead of triSurfaceGeoMesh so this might be ok for me. I am not sure what the difference between them is though. Philip |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[ICEM] trouble with mesh quality from ICEM in CFX Solver | escher25 | ANSYS Meshing & Geometry | 0 | February 28, 2011 07:38 |
[GAMBIT] Trouble meshing complex VOF geometry | RPJones | ANSYS Meshing & Geometry | 2 | February 14, 2011 18:54 |