|
[Sponsors] |
January 23, 2014, 05:53 |
User defined field function.
|
#1 |
New Member
bharadwaj karthik
Join Date: Oct 2013
Posts: 4
Rep Power: 13 |
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 |
|
January 23, 2014, 06:58 |
|
#2 |
Super Moderator
Alex
Join Date: Jun 2012
Location: Germany
Posts: 3,427
Rep Power: 49 |
Isnt that simply projecting the pressure gradient vector onto the velocity vector?
http://en.wikipedia.org/wiki/Vector_projection |
|
January 23, 2014, 08:03 |
|
#3 |
New Member
bharadwaj karthik
Join Date: Oct 2013
Posts: 4
Rep Power: 13 |
Yes!!!!!!!!!! Thank you got it!!
|
|
January 23, 2014, 11:31 |
|
#4 |
New Member
bharadwaj karthik
Join Date: Oct 2013
Posts: 4
Rep Power: 13 |
(/(+(+(* $${Velocity}[0] $${ApparentPressureGradient}[0]) (* $${Velocity}[1] $${ApparentPressureGradient}[1])) (* $${Velocity}[2] $${ApparentPressureGradient}[2])) ${Velocity_0})
this is what i got.. |
|
|
|
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 11:20 |
User defined function in CFX | ealatawi | CFX | 3 | November 13, 2011 19:18 |
[blockMesh] BlockMesh FOAM warning | gaottino | OpenFOAM Meshing & Mesh Conversion | 7 | July 19, 2010 15:11 |
user field function | girishg | STAR-CCM+ | 5 | May 13, 2010 10:21 |
[blockMesh] Axisymmetrical mesh | Rasmus Gjesing (Gjesing) | OpenFOAM Meshing & Mesh Conversion | 10 | April 2, 2007 15:00 |