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

Access mesh data

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 15, 2021, 14:18
Default Access mesh data
  #1
New Member
 
Negar Naghash
Join Date: Mar 2017
Posts: 5
Rep Power: 9
negarnaghash is on a distinguished road
Hi all,

I'm trying to add a piece of code to the reactingParcel foam source code. And for my purpose, I need to grab the containing cell of a sample particle in the domain and access its pressure and temperature to manipulate it for further actions.
So far I found that each particle has a "celli_" defined in the particle.H class az and index of the containing cell of the particle. Now I need to pass that value to the mesh to be able to read that specific cell pressure and temperature but to be honest, this whole recursive use of classes in OpenFoam is extremely confusing to me.
So I appreciate any thoughts or suggestions on this problem.
negarnaghash is offline   Reply With Quote

Reply

Tags
mesh data, programming


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
CFD by anderson, chp 10.... supersonic flow over flat plate varunjain89 Main CFD Forum 18 May 11, 2018 07:31
[General] 2 datas on one plot Akuji ParaView 46 December 1, 2013 14:06
Using Workbench, CFX-Pre doesn't update mesh from upstream data Shawn_A CFX 2 November 25, 2012 13:06
Access raw field data (scalars, vectors) on mesh haakon OpenFOAM Programming & Development 3 September 25, 2012 10:01
how to pickup the mesh data and vector data oga_shin OpenFOAM 2 October 27, 2011 23:42


All times are GMT -4. The time now is 03:49.