|
[Sponsors] |
Writing/Reading Field<Type> to/from Dictionary |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
January 19, 2012, 06:51 |
Writing/Reading Field<Type> to/from Dictionary
|
#1 |
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,900
Rep Power: 37 |
Dear all,
I have a small problem with IO of Field<Type> to and from dictionaries. I have, say, a vectorField named k of size 50 and a dictionary named dict. I add the field k to dict in a preprocessing program by dict.add("waveNumber", k, true); In the dictionary, I get the following: waveNumber 50 ( (<vector0>) ... (<vector49>) ); However, because it does not look like waveNumber nonuniform List<vector> 50 ( (<vector0>) ... (<vector49>) ); I cannot read the field into another program in the constructor with the command k_("waveNumber", dict, 50 ) Adding "nonuniform List<vector>" by hand solves the problem. My question is, how I can write the field in the correct way from the very start? Thanks a lot for your help, Niels |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
writing subDict in a dictionary | ubaid | OpenFOAM Programming & Development | 3 | October 25, 2014 17:17 |
Doubt in term representation in the fvSchemes dictionary | titio | OpenFOAM Running, Solving & CFD | 0 | July 17, 2009 13:21 |
Reading from User Defined Dictionary File | brosemu | OpenFOAM Running, Solving & CFD | 2 | March 30, 2009 15:25 |
Problem with rhoSimpleFoam | matteo_gautero | OpenFOAM Running, Solving & CFD | 0 | February 28, 2008 06:51 |
FoamX error aachenBomb case | Ervin Adorean (Adorean) | OpenFOAM Pre-Processing | 13 | March 7, 2005 03:50 |