CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Programming & Development

Trouble declaring DimensionedField for triSurfaceGeoMesh

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

Reply
 
LinkBack Thread Tools Display Modes
Old   March 2, 2012, 10:27
Default Trouble declaring DimensionedField for triSurfaceGeoMesh
  #1
Senior Member
 
bigphil's Avatar
 
Philip Cardiff
Join Date: Mar 2009
Location: Dublin,Ireland
Posts: 568
Rep Power: 19
bigphil will become famous soon enoughbigphil will become famous soon enough
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)
);
The compiler complains that this constructor is not found even though it gives this constructor as a candidate.
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
All suggestions are welcome,
Philip
bigphil is offline   Reply With Quote

Old   March 2, 2012, 10:54
Default
  #2
Senior Member
 
bigphil's Avatar
 
Philip Cardiff
Join Date: Mar 2009
Location: Dublin,Ireland
Posts: 568
Rep Power: 19
bigphil will become famous soon enoughbigphil will become famous soon enough
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
bigphil is offline   Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


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 08:38
[GAMBIT] Trouble meshing complex VOF geometry RPJones ANSYS Meshing & Geometry 2 February 14, 2011 19:54


All times are GMT -4. The time now is 01:00.