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

Accessing Mesh, Fields in Foam::sixDoFRigidBodyMotionRestraints::linearSprin g

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 4, 2014, 01:22
Default Accessing Mesh, Fields in Foam::sixDoFRigidBodyMotionRestraints::linearSprin g
  #1
Senior Member
 
kumar
Join Date: Mar 2009
Posts: 112
Rep Power: 17
kumar2 is on a distinguished road
Hi Niels,

Thanks again for your reply. Just this last question I have . It would be great if you can give me some pointers ...

Actually I am stuck with a library ( not waves2foam ), which cannot see the mesh or any other fields(U,p). I read in one of the posts that Istream can be used to access these fields. Are you aware of any code snippets that does this.

Have a great week

Best regards

Kumar

[Moderator note: moved from the old thread Waves2Foam Related Topics ]

Last edited by wyldckat; October 8, 2018 at 10:09. Reason: see "Moderator note:"
kumar2 is offline   Reply With Quote

Old   August 4, 2014, 03:40
Default
  #2
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,900
Rep Power: 37
ngj will become famous soon enoughngj will become famous soon enough
Hi Kumar,

This thread is dedicated to waves2Foam, so I would recommend you to start a new thread. Furthermore do an effort in describing your problems in more detail, as it is otherwise impossible to help with your actual problem.

Kind regards,

Niels
__________________
Please note that I do not use the Friend-feature, so do not be offended, if I do not accept a request.
ngj is offline   Reply With Quote

Old   August 4, 2014, 15:55
Default Accessing Mesh, Fields in Foam::sixDoFRigidBodyMotionRestraints::linearSprin g
  #3
Senior Member
 
kumar
Join Date: Mar 2009
Posts: 112
Rep Power: 17
kumar2 is on a distinguished road
Dear All,

Is there anyway to access the velocity fields and the mesh from inside the class: Foam::sixDoFRigidBodyMotionRestraints::linearSprin g

The class is located here: OpenFOAM/OpenFOAM-2.1.0/src/postProcessing/functionObjects/forces/pointPatchFields/derived/sixDoFRigidBodyMotion/sixDoFRigidBodyMotionRestraint/linearSpring

( This method: http://www.cfd-online.com/Forums/ope...tml#post254591 , does not work for the linearSpring class)

I came across this post, http://www.cfd-online.com/Forums/ope...tml#post266526 , which talks about using IFstream to access the mesh , field values. Can anyone comment a little more on this, perhaps give a code snippet as an example..

Thanks in advance

Kumar
kumar2 is offline   Reply With Quote

Old   August 4, 2014, 16:06
Default
  #4
Senior Member
 
kumar
Join Date: Mar 2009
Posts: 112
Rep Power: 17
kumar2 is on a distinguished road
Dear Niels,

My apologies for the misplaced posting and lack of info. As suggested by you, I have opened a new thread under programming&development. Here is a link if you choose to take a look, http://www.cfd-online.com/Forums/ope...tml#post504368 . I have to thank you again for your continued eagerness for keeping this wave2foam thread as active and informational as it possibly can be.

Best regards

Kumar
kumar2 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
sliding mesh problem in CFX Saima CFX 46 September 11, 2021 07:38
an odd(at least for me!) reconstructPar error on a field immortality OpenFOAM Running, Solving & CFD 3 June 3, 2013 22:36
[snappyHexMesh] Layers:problem with curvature giulio.topazio OpenFOAM Meshing & Mesh Conversion 10 August 22, 2012 09:03
Resetting all fields and mesh motion wavemaster OpenFOAM Programming & Development 0 May 21, 2012 13:00
engrid -> save as .stl with boundarie codes Zymon enGrid 31 August 29, 2011 13:40


All times are GMT -4. The time now is 04:26.