Creating field of strings with "mesh-structure"
hi,
I need to create a field that consists of a function (string) for each cell of the current geometry like of type Code:
GeometricField<string, fvPatchField, volMesh> The field should have the structure of the current mesh. Is this possible and how would I do it? I've read about the classes "geometricField" and "dimensionedField", but I am not sure if it s possible and how to do it. |
Hi Maybee,
It sounds a bit weird, because I am pretty sure that the boundary field is not defined for strings. Do something along the following lines: Code:
List<string> stringField(mesh.C().internalField().size()); Niels |
Hi,
thx for the answer - i will check this later when I have to implement this into my code. :) |
All times are GMT -4. The time now is 15:35. |