|
[Sponsors] |
September 13, 2019, 07:12 |
Nested Field usage
|
#1 |
New Member
/
Join Date: Jan 2019
Posts: 7
Rep Power: 7 |
Hi all!
I got used to working with a Field of vectors such as: Field<vector> someVectorField(LengthOfField, vector::zero); Now I need 5 "coordinates so instead of a vector field i would use a field of fields. Didn't find anything on the topic, so I just tried to approach it logically: Field<Field<scalar>> someFieldField(LengthOfOuterField, (LengthOfInnerField, 0.0); Unfortunately this does not work. I can however define it as such: Field<Field<scalar> > someFieldField[LengthOfOuterField][LengthOfInnerField]; but I have no idea how to declare it afterwards. Tried = 0 or = {0} and such. Also someFieldField[0][0] = someScalar; does not work since seemingly the left hand side is still a field and not a scalar... I appreciate every bit of help. Thx in advance! |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
simpleDyMFoam on v1806 | gamemakerh | OpenFOAM Programming & Development | 0 | November 8, 2018 08:15 |
potential flows, helmholtz decomposition and other stuffs | pigna | Main CFD Forum | 1 | October 26, 2017 08:34 |
Access to field which is evaluated at the moment | Tobi | OpenFOAM Programming & Development | 6 | April 19, 2017 13:09 |
[General] How to create an additional vector with {Field 4, Field 5, Field 6} | Bombacar | ParaView | 1 | August 15, 2015 18:05 |
Demagnetization field | jan0385 | ANSYS | 0 | April 12, 2012 09:09 |