|
[Sponsors] |
September 6, 2018, 18:28 |
pointTypeField in faMesh
|
#1 |
New Member
Join Date: Sep 2018
Posts: 6
Rep Power: 8 |
Hi,
I'm programming a solver in foam-extend 4.0 that needs a bool value defined in every point of a finite area mesh (faMesh) At first I used a simple boolIOList, which works but doesn't get decomposed / reconstructed when using decomposePar / reconstructPar. So, now I'm trying to use a GeometricField, namely a pointBoolField (it is not defined in the source code, I define it myself in the solver) However, there doesn't seem to be a way to define a pointTypeField on the faMesh points only. pointTypeFields require a pointMesh in their constructor. For instance, in $FOAM_SOLVERS/solidMechanics/stressFemFoam/calculateStress.H : Code:
// Create pointMesh for field post-processing const pointMesh& pMesh = pointMesh::New(mesh); // U pointVectorField Up ( IOobject ( "Up", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::AUTO_WRITE ), pMesh, U.dimensions() ); I've tried defining the pointBoolField on the fvMesh tied to the faMesh, and then only work with the points included in the faMesh. I haven't been successful though, even when using a type defined in the source code such pointScalarField instead, but for the sake of not making this post too long I won't go into details about that for now. I first want to confirm that there is no other way to work with a pointTypeField on a faMesh, since defining the field in the whole fvMesh seems like a waste of memory to me, and much less intuitive for the user. Thank you |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
InterTrackFoam any information | rajon | OpenFOAM Running, Solving & CFD | 30 | January 1, 2016 17:27 |
famesh | cctv | OpenFOAM Programming & Development | 5 | October 8, 2013 14:14 |
[Other] famesh in openfoam-1.6-ext | cctv | OpenFOAM Meshing & Mesh Conversion | 1 | August 17, 2013 15:39 |
interTrackFoam faMesh error | lionlove0903 | OpenFOAM Running, Solving & CFD | 8 | February 9, 2011 06:32 |