|October 6, 2011, 07:38||
IOField<List<scalar > >
Join Date: Dec 2009
Posts: 112Rep Power: 6
i would like to add some information to my particles.
Therefore I added a member "List<scalar> myList" to myparticle class.
So each instance/particle will have that list.
I would like to write out that data so i tried to add that to the mypartticleClassIO.C file.
When I compile I get an error message and im am stuck right now..
/// in myParticlesClassIO.C //this one works: IOField<scalar> m(c.fieldIOobject("m",IOobject::NO_READ),np); //this one not: IOField<List<scalar > > myList(c.fieldIOobject("myList",IOobject::NO_READ),np);
/opt/openfoam171/src/OpenFOAM/lnInclude/Field.H:87: error: no type named ‘cmptType’ in ‘class Foam::pTraits<Foam::List<double> >’
1.) How do I add a lot of scalars (lets say 50-100) to my particle class, so that i have proper IO ?
2.) If the answer is list, how do I manage the IO?
Last edited by heavy_user; October 7, 2011 at 10:59.
|June 19, 2012, 17:29||
Hisham El Safti
Join Date: Apr 2011
Location: Braunschweig, Germany
Blog Entries: 10Rep Power: 6
I hope my response is not too late. I do not know what you need exactly but a scalarField works for the IOField so as vectorField and symmTensorField
IOField<scalarField> matHistoryScalar( IOobject ( ... );
|Thread||Thread Starter||Forum||Replies||Last Post|
|1.7.x -> buoyantPimpleFoam -> hRhoThermo -> incompressible and icoPoly3ThermoPhysics?||will.logie||OpenFOAM Programming & Development||1||February 16, 2011 21:52|
|1.7.x -> buoyantPimpleFoam -> hRhoThermo -> incompressible and icoPoly3ThermoPhysics?||will.logie||OpenFOAM||0||December 16, 2010 08:08|
|CAD -> gMsh -> enGrid -> OpenFOAM Problem||AlGates||OpenFOAM||7||August 6, 2010 13:46|
|Geometry > Netgen > OpenFOAM||ericnutsch||Open Source Meshers: Gmsh, Netgen, CGNS, ...||9||February 22, 2010 08:39|
|Point Data -> Spline -> Iges||Tim Franke||Main CFD Forum||1||July 6, 2000 13:14|