CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > Siemens > STAR-CCM+

User defined field function.

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 23, 2014, 04:53
Default User defined field function.
  #1
New Member
 
bharadwaj karthik
Join Date: Oct 2013
Posts: 4
Rep Power: 12
karthik1413 is on a distinguished road
Hello all i want to write a user defined field function for the streamwise pressure gradient.(I am trying to refine mesh based on the field functions).I have extracted the apparent pressure gradient by using the temporary storage retained feature.Can someone please help me to define the "streamwise pressure gradient" using the apparent pressure gradient.Thanks

Regards
Karthik
karthik1413 is offline   Reply With Quote

Old   January 23, 2014, 05:58
Default
  #2
Super Moderator
 
flotus1's Avatar
 
Alex
Join Date: Jun 2012
Location: Germany
Posts: 3,399
Rep Power: 46
flotus1 has a spectacular aura aboutflotus1 has a spectacular aura about
Isnt that simply projecting the pressure gradient vector onto the velocity vector?

http://en.wikipedia.org/wiki/Vector_projection
flotus1 is offline   Reply With Quote

Old   January 23, 2014, 07:03
Default
  #3
New Member
 
bharadwaj karthik
Join Date: Oct 2013
Posts: 4
Rep Power: 12
karthik1413 is on a distinguished road
Yes!!!!!!!!!! Thank you got it!!
karthik1413 is offline   Reply With Quote

Old   January 23, 2014, 10:31
Default
  #4
New Member
 
bharadwaj karthik
Join Date: Oct 2013
Posts: 4
Rep Power: 12
karthik1413 is on a distinguished road
(/(+(+(* $${Velocity}[0] $${ApparentPressureGradient}[0]) (* $${Velocity}[1] $${ApparentPressureGradient}[1])) (* $${Velocity}[2] $${ApparentPressureGradient}[2])) ${Velocity_0})

this is what i got..
karthik1413 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
[swak4Foam] installation problem with version 0.2.3 Claudio87 OpenFOAM Community Contributions 9 May 8, 2013 10:20
User defined function in CFX ealatawi CFX 3 November 13, 2011 18:18
[blockMesh] BlockMesh FOAM warning gaottino OpenFOAM Meshing & Mesh Conversion 7 July 19, 2010 14:11
user field function girishg STAR-CCM+ 5 May 13, 2010 09:21
[blockMesh] Axisymmetrical mesh Rasmus Gjesing (Gjesing) OpenFOAM Meshing & Mesh Conversion 10 April 2, 2007 14:00


All times are GMT -4. The time now is 19:38.