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

Accessing velocity components and gradient of velcoity components

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By vivekgnhtr

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 11, 2014, 11:22
Default Accessing velocity components and gradient of velcoity components
  #1
New Member
 
vivek
Join Date: Aug 2010
Posts: 2
Rep Power: 0
vivekgnhtr is on a distinguished road
Dear All,

I am trying to implement a SGS model in openFOAM for incompressible flows. For that i am using existing constant Smagorinsky model implementation.

For my SGS model, I need to access cell velocity components and gradU components.

Can anybody help me out how can i access these components.


Thanks and Regards,
vivek
watermelon likes this.
vivekgnhtr is offline   Reply With Quote

Old   June 25, 2022, 03:27
Default
  #2
New Member
 
Xingguang Zhou
Join Date: May 2022
Location: CHINA
Posts: 13
Rep Power: 3
watermelon is on a distinguished road
Quote:
Originally Posted by vivekgnhtr View Post
Dear All,

I am trying to implement a SGS model in openFOAM for incompressible flows. For that i am using existing constant Smagorinsky model implementation.

For my SGS model, I need to access cell velocity components and gradU components.

Can anybody help me out how can i access these components.


Thanks and Regards,
vivek
Hello vivek, do you already solve this problem?

I also meet this problem, thank you!
watermelon is offline   Reply With Quote

Old   June 27, 2022, 02:24
Default
  #3
Member
 
Join Date: Jan 2022
Location: Germany
Posts: 72
Rep Power: 4
überschwupper is on a distinguished road
U_.component(direction)


I also think calling .x(), .y(), .z() should work.



This should work for both since grad() also returns a vectorField.
überschwupper is offline   Reply With Quote

Old   June 27, 2022, 02:39
Default
  #4
New Member
 
Xingguang Zhou
Join Date: May 2022
Location: CHINA
Posts: 13
Rep Power: 3
watermelon is on a distinguished road
Quote:
Originally Posted by überschwupper View Post
U_.component(direction)


I also think calling .x(), .y(), .z() should work.



This should work for both since grad() also returns a vectorField.
Thank you sir, I already use the U_.component(0), U_.component(1), to get the Ux, Uy, and so on.

Thanks for your reply!
watermelon 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
UDF for defining a velocity gradient mozkan26 FLUENT 2 August 7, 2021 21:16
Natural convection in a closed domain STILL NEEDING help! Yr0gErG FLUENT 4 December 2, 2019 00:04
Transformation of a cartesian velocity gradient volTensorField to cylindrical coord. alexey7783 OpenFOAM 5 April 26, 2012 18:29
Re: How to access Gradient components. creddy_trddc CFX 2 December 28, 2010 23:21
Setting velocity gradient as BC at opening Antonis CFX 2 August 15, 2006 07:56


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