CFD Online URL
[Sponsors]
Home > Forums > STAR-CCM+

User defined field function.

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

Reply
 
LinkBack Thread Tools Display Modes
Old   January 23, 2014, 05:53
Default User defined field function.
  #1
New Member
 
bharadwaj karthik
Join Date: Oct 2013
Posts: 4
Rep Power: 3
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, 06:58
Default
  #2
Senior Member
 
Alex
Join Date: Jun 2012
Location: Germany
Posts: 1,041
Rep Power: 17
flotus1 will become famous soon enough
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, 08:03
Default
  #3
New Member
 
bharadwaj karthik
Join Date: Oct 2013
Posts: 4
Rep Power: 3
karthik1413 is on a distinguished road
Yes!!!!!!!!!! Thank you got it!!
karthik1413 is offline   Reply With Quote

Old   January 23, 2014, 11:31
Default
  #4
New Member
 
bharadwaj karthik
Join Date: Oct 2013
Posts: 4
Rep Power: 3
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

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
swak4Foam installation problem Claudio87 OpenFOAM 9 May 8, 2013 11:20
User defined function in CFX ealatawi CFX 3 November 13, 2011 19:18
BlockMesh FOAM warning gaottino OpenFOAM Native Meshers: blockMesh 7 July 19, 2010 15:11
user field function girishg STAR-CCM+ 5 May 13, 2010 10:21
Axisymmetrical mesh Rasmus Gjesing (Gjesing) OpenFOAM Native Meshers: blockMesh 10 April 2, 2007 15:00


All times are GMT -4. The time now is 23:58.