|March 17, 2013, 17:52||
Add a scalarField type to the templated DataEntry class
Join Date: Apr 2010
Location: Michigan, USA
Posts: 32Rep Power: 5
I would like to add a scalarField type to the DataEntry class such that an arbitrary number of scalars could be read in from CSV file. As it stands you can only get 1, 3, or 9 values in using scalar, vector, and tensor types. See code in /src/OpenFOAM/primitives/functions/DataEntry.
I wrote specializations for the scalarField nCSV<scalarField>::readValue and void Foam::nCSV<scalarField>::read() functions to allow specifying the start column and number of columns to read in from CSV.
The problem I facing at compile is that the scalarField, Foam:: pTraits<Foam::Field<double> >, does not have members 'nComponents' or 'zero', which of course the scalar, vector, and tensor types do.
Can anyone please give me some direction on how to fix this? I don't want to resort to using a VectorN type just to read data from file.
|csv files, dataentry, template errors|
|Thread||Thread Starter||Forum||Replies||Last Post|
|CGNS converters available||mbeaudoin||OpenFOAM Meshing & Mesh Conversion||123||April 9, 2013 10:53|
|Mesh conversion problem (fluent3DMeshToFoam)||Aadhavan||OpenFOAM Other Meshers: ICEM, Star, Ansys, Pointwise, GridPro, Ansa, ...||1||December 12, 2012 11:38|
|turbulent jet simulation||antonio_ing||OpenFOAM Running, Solving & CFD||5||September 16, 2010 03:31|
|pipe flow with heat transfer||Fabian||OpenFOAM||2||December 12, 2009 05:53|
|Errors running allwmake in OpenFOAM141dev with WM_COMPILE_OPTION%3ddebug||unoder||OpenFOAM Installation||11||January 30, 2008 21:30|