CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

Get velocity values of adjacent cells

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 25, 2022, 09:03
Default Get velocity values of adjacent cells
  #1
New Member
 
Telangana
Join Date: Jul 2022
Posts: 8
Rep Power: 2
Abhijeeth is on a distinguished road
I would like to find the velocity values of neighboring cells, to find the derivative of velocity with respect to the radial direction.
I have an idea of finding the data of neighboring cells using the Thread pointer.
But does not have an idea how to code it.
Please share if u have any ideas.
Thanks in advance............
Abhijeeth is offline   Reply With Quote

Old   July 27, 2022, 05:21
Default
  #2
Senior Member
 
sbaffini's Avatar
 
Paolo Lampitella
Join Date: Mar 2009
Location: Italy
Posts: 1,939
Blog Entries: 29
Rep Power: 36
sbaffini will become famous soon enoughsbaffini will become famous soon enough
Send a message via Skype™ to sbaffini
The UDF manual (or whatever its name is today) has examples of various loopings.

However, you don't need that because the gradient is among the available variables, then you can simply project that along your preferred direction
sbaffini is offline   Reply With Quote

Old   July 28, 2022, 05:59
Default
  #3
New Member
 
Telangana
Join Date: Jul 2022
Posts: 8
Rep Power: 2
Abhijeeth is on a distinguished road
Quote:
Originally Posted by sbaffini View Post
The UDF manual (or whatever its name is today) has examples of various loopings.

However, you don't need that because the gradient is among the available variables, then you can simply project that along your preferred direction
Sir,
After using the gradient I got an error
MPI Application rank 0 exited before MPI finalize() with status 2

What needs to be done next .....................
Abhijeeth is offline   Reply With Quote

Old   July 28, 2022, 06:26
Default
  #4
Senior Member
 
sbaffini's Avatar
 
Paolo Lampitella
Join Date: Mar 2009
Location: Italy
Posts: 1,939
Blog Entries: 29
Rep Power: 36
sbaffini will become famous soon enoughsbaffini will become famous soon enough
Send a message via Skype™ to sbaffini
Quote:
Originally Posted by Abhijeeth View Post
Sir,
After using the gradient I got an error
MPI Application rank 0 exited before MPI finalize() with status 2

What needs to be done next .....................
The problem you have could be anything, even non UDF related. Probably it is some floating point exception in one process, or you are using some variable which is not initialized correctly. Literally, it can be anything. Pretty sure there is some error in your UDF.

I suggest you to first make some experiments with examples you can find in the manual, and then adapt them to your needs.

However, some C coding capability is needed to proficiently use UDFs.
sbaffini is offline   Reply With Quote

Reply

Tags
cfd fluent, pointers, udf

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
[snappyHexMesh] SnappyHexMesh running killed! Mark JIN OpenFOAM Meshing & Mesh Conversion 7 June 14, 2022 02:37
SimpleFoam & Theater jipai OpenFOAM Running, Solving & CFD 3 June 18, 2019 11:11
cellZone not taking all the cells inside rahulksoni OpenFOAM Running, Solving & CFD 6 January 25, 2019 01:11
[blockMesh] Create internal faces as patch in blockMesh m.delta68 OpenFOAM Meshing & Mesh Conversion 14 July 12, 2018 15:43
Large contrasting values across adjacent cells sturgeon OpenFOAM Running, Solving & CFD 8 June 27, 2017 12:33


All times are GMT -4. The time now is 02:32.