CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

pointTypeField in faMesh

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 6, 2018, 17:28
Default pointTypeField in faMesh
  #1
jlr
New Member
 
Join Date: Sep 2018
Posts: 6
Rep Power: 7
jlr is on a distinguished road
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()
);
The pointMesh class only has one constructor, which calls on a polyMesh, which can only represent 3D volume meshes and not a faMesh

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
jlr is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
InterTrackFoam any information rajon OpenFOAM Running, Solving & CFD 30 January 1, 2016 16:27
famesh cctv OpenFOAM Programming & Development 5 October 8, 2013 13:14
[Other] famesh in openfoam-1.6-ext cctv OpenFOAM Meshing & Mesh Conversion 1 August 17, 2013 14:39
interTrackFoam faMesh error lionlove0903 OpenFOAM Running, Solving & CFD 8 February 9, 2011 05:32


All times are GMT -4. The time now is 19:05.