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

In pointPatchField, how to read coordinate values of mesh

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 18, 2014, 08:35
Default In pointPatchField, how to read coordinate values of mesh
  #1
New Member
 
Jarvis
Join Date: Jun 2013
Posts: 14
Rep Power: 12
nbyjn is on a distinguished road
Hello foamers:
I want to write a new boundary based on oscillatingDisplacementPointPatchField. I want to give this boundary different values based on the mesh's coordinate values. Not a single value of the patch's coordinate, I mean different values on different girds. In this field, I can't use mesh.C() because "mesh" is not defined.
Do you have any idea? Thank you!
nbyjn is offline   Reply With Quote

Old   December 18, 2014, 08:58
Default
  #2
Senior Member
 
floquation's Avatar
 
Kevin van As
Join Date: Sep 2014
Location: TU Delft, The Netherlands
Posts: 252
Rep Power: 20
floquation will become famous soon enough
I don't understand exactly what you are trying to do, but

http://www.cfd-online.com/Forums/ope...-registry.html

that topic shows how you can access the mesh.

I hope that helps.
floquation is offline   Reply With Quote

Old   December 19, 2014, 06:16
Default
  #3
New Member
 
Jarvis
Join Date: Jun 2013
Posts: 14
Rep Power: 12
nbyjn is on a distinguished road
Quote:
Originally Posted by floquation View Post
I don't understand exactly what you are trying to do, but

http://www.cfd-online.com/Forums/ope...-registry.html

that topic shows how you can access the mesh.

I hope that helps.
Hi Kevin:
Thank you for your reply!
I will try the methods in that thread, thank you.
nbyjn 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
Mesh Boundary Assignment Question Wandadars Mesh Generation & Pre-Processing 1 June 13, 2016 17:19
[Other] Cannot read a Spider mesh into Foam evrikon OpenFOAM Meshing & Mesh Conversion 1 March 14, 2012 10:13
Mesh Reference Values problem. rezki STAR-CCM+ 7 July 19, 2010 05:30
[snappyHexMesh] external flow with snappyHexMesh chelvistero OpenFOAM Meshing & Mesh Conversion 11 January 15, 2010 19:43


All times are GMT -4. The time now is 01:16.