|
[Sponsors] |
Creating field of strings with "mesh-structure" |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
February 13, 2014, 06:03 |
Creating field of strings with "mesh-structure"
|
#1 |
Senior Member
Join Date: Jan 2012
Posts: 166
Rep Power: 14 |
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. Last edited by maybee; February 13, 2014 at 07:46. |
|
February 13, 2014, 14:49 |
|
#2 |
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,902
Rep Power: 37 |
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()); forAll (stringField, stringi) { // Populate with correct string } Niels
__________________
Please note that I do not use the Friend-feature, so do not be offended, if I do not accept a request. |
|
February 14, 2014, 10:49 |
|
#3 |
Senior Member
Join Date: Jan 2012
Posts: 166
Rep Power: 14 |
Hi,
thx for the answer - i will check this later when I have to implement this into my code. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Moving mesh | Niklas Wikstrom (Wikstrom) | OpenFOAM Running, Solving & CFD | 122 | June 15, 2014 07:20 |
Problem in running ICEM grid in Openfoam | Tarak | OpenFOAM | 6 | September 9, 2011 18:51 |
Problem with rhoSimpleFoam | matteo_gautero | OpenFOAM Running, Solving & CFD | 0 | February 28, 2008 07:51 |
Phase locked average in run time | panara | OpenFOAM | 2 | February 20, 2008 15:37 |
Creating a mesh of the flow field in GAMBIT | Vidya Raja | FLUENT | 0 | October 3, 2005 10:53 |