CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

ploting Line surfaces parell to x axis not ISO surfaces

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 18, 2019, 00:57
Default ploting Line surfaces parell to x axis not ISO surfaces
  #1
Member
 
MEK
Join Date: Oct 2016
Posts: 39
Rep Power: 10
ebrahem is on a distinguished road
for ploting the iso surfaces parallel to x axis i use following scheme command

(Do ((x -0.004 (+ x 0.0005))) ((> x 0.027))
(Ti-menu-load-string (format #f "surface iso-surface x-coordinate x=~a , , ~a ," x x))
)

for y axis i just change the x in x-coordinates with y

i got successfull in ploting line surfaces in vertical directions i.e. parallel to y-axis by using following command

(Do ((x -0.004 (+ x 0.0005))) ((> x 0.0271))
(Ti-menu-load-string (format #f "su line-surface x=~a ~a -0.0015 ~a 0.0015" x x x))
)

but i want to plot LINE-SURFACES not iso-surfaces parallel to x-axis i.e. horizantal
but i m unsuccessful

if someone guide me then it will be very helpful
Thanx in advance
ebrahem is offline   Reply With Quote

Old   November 18, 2019, 01:04
Default
  #2
Member
 
MEK
Join Date: Oct 2016
Posts: 39
Rep Power: 10
ebrahem is on a distinguished road
Quote:
Originally Posted by ebrahem View Post
for ploting the iso surfaces parallel to x axis i use following scheme command

(Do ((x -0.004 (+ x 0.0005))) ((> x 0.027))
(Ti-menu-load-string (format #f "surface iso-surface x-coordinate x=~a , , ~a ," x x))
)

for y axis i just change the x in x-coordinates with y

i got successfull in ploting line surfaces in vertical directions i.e. parallel to y-axis by using following command

(Do ((x -0.004 (+ x 0.0005))) ((> x 0.0271))
(Ti-menu-load-string (format #f "su line-surface x=~a ~a -0.0015 ~a 0.0015" x x x))
)

but i want to plot LINE-SURFACES not iso-surfaces parallel to x-axis i.e. horizantal
but i m unsuccessful

if someone guide me then it will be very helpful
Thanx in advance

Never mind get successful
ebrahem is offline   Reply With Quote

Old   November 18, 2019, 01:08
Default
  #3
Member
 
MEK
Join Date: Oct 2016
Posts: 39
Rep Power: 10
ebrahem is on a distinguished road
actually i m calculating bulk temperature in a 2D domain thats why i am using these surfaces

my procedure is simple plot these lines write ascii files with the information of velocity and temperature then by using the matlab i am calculating the bulk temperature to calculate Nusselt number.

if anyone want to recommend any thing regarding this procedure than always welcome
ebrahem is offline   Reply With Quote

Old   November 18, 2019, 10:30
Default
  #4
Senior Member
 
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27
pakk will become famous soon enough
Impressive. Every successful use of scheme is impressive.


But I don't know if it is efficient use of your time; depending on how you define bulk temperature, you might not need Matlab at all and can do everything in Fluent.
pakk is offline   Reply With Quote

Old   November 19, 2019, 01:26
Default
  #5
Member
 
MEK
Join Date: Oct 2016
Posts: 39
Rep Power: 10
ebrahem is on a distinguished road
Quote:
Originally Posted by pakk View Post
Impressive. Every successful use of scheme is impressive.


But I don't know if it is efficient use of your time; depending on how you define bulk temperature, you might not need Matlab at all and can do everything in Fluent.

i have digged deep this forum regarding discussion of bulk temperature as stated by LuckyTran working out for bulk temperature by doing this method its a very bad guess.


but the recommended method is to develop custom field function for every surrface i.e. integral/sum of temperature * velocity and divide it by intergral/sum velocity but creating it for every surface is kind of donkey work but here scheme command comes for help to automatically make monitors for every surface. for wall temperature make the vertex average of points.



(Ti-menu-load-string (format #f "s m su set tu~a ~s tu x=~a () no no yes tu~a 1 yes flow-time" x "Integral" x x))
(Ti-menu-load-string (format #f "s m su set u~a ~s velocity-magnitude x=~a () no no yes u~a 1 yes flow-time" x "Integral" x x))
(Ti-menu-load-string (format #f "s m su set tw~a ~s temperature point-~a () no no yes tw~a 1 yes flow-time" x "Vertex Average" x x))



but for averaging over time i still have to use matlab to sum the information over time. i know we can use data sampling for time averaging but i havent fully explored this idea. i hope when u say it can be done all by fluent u mean all of the above procedure or am i missing something
ebrahem is offline   Reply With Quote

Old   November 19, 2019, 02:24
Default
  #6
Senior Member
 
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27
pakk will become famous soon enough
Yes, I mean all of the above. It might all be possible in Fluent without Matlab or Scheme, but that completely depends on how you define bulk temperature. I have no idea what is your definition.
pakk is offline   Reply With Quote

Old   November 19, 2019, 02:46
Default
  #7
Member
 
MEK
Join Date: Oct 2016
Posts: 39
Rep Power: 10
ebrahem is on a distinguished road
Quote:
Originally Posted by pakk View Post
Yes, I mean all of the above. It might all be possible in Fluent without Matlab or Scheme, but that completely depends on how you define bulk temperature. I have no idea what is your definition.

my bad https://ibb.co/jgSwf2f
Attached Images
File Type: jpg Capture.JPG (9.8 KB, 4 views)
ebrahem 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
[Gmsh] 3D Mesh conversion from gmsh-2.5.0 to OpenFOAM Ancioi OpenFOAM Meshing & Mesh Conversion 17 January 9, 2019 00:50
problem during mpi in server: expected Scalar, found on line 0 the word 'nan' muth OpenFOAM Running, Solving & CFD 3 August 27, 2018 05:18
[OpenFOAM] Annoying issue of automatic "Rescale to Data Range " with paraFoam/paraview 3.12 keepfit ParaView 60 September 18, 2013 04:23
Problems of Duns Codes! Martin J Main CFD Forum 8 August 15, 2003 00:19
error while compiling the USER Sub routine CFD user CFX 3 November 25, 2002 16:16


All times are GMT -4. The time now is 18:17.