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

FLUENT Scheme to get Contour names as a list

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 27, 2022, 10:22
Default FLUENT Scheme to get Contour names as a list
  #1
New Member
 
Join Date: Jun 2021
Posts: 13
Rep Power: 5
anan12345 is on a distinguished road
Hello all, I'm trying to automate some post processing tasks but I couldn't get contour names as a list or any other useful output.

The main purpose of this scheme code is to create animations from all of the contours using a do-cycle. since I have ~15 animations/contours per case, it got boring real quick.

Currently I'm supplying the contour names manually by creating a list, If anyone has any idea how to get contour names by any means I'm all ears.
I'm attaching the current state of my scheme, define input part is where I supply the contour names manually, and the part I want to improve.

Thanks in advance

---
(define input "mp2-stat-fixed mp2-velo-fixed mp2-temp-fixed mp2-totalpres-fixed mp2-totalpres-auto mp2-temp-auto mp2-velo-auto mp2-stat-auto mp-stat-fixed mp-velo-fixed mp-temp-fixed mp-totalpres-fixed mp-totalpres-auto mp-temp-auto mp-velo-auto mp-stat-auto")
(define contours (string-split input))
(define len1 (length contours))

(do ((x 0 (+ x 1))) ((> x 2022))
(begin
(define list_item (list-ref contours x))
(ti-menu-load-string (format #f "solve anim obj create ~a-animation-~a animate-on ~a sd ./ st png view from-selected-object frequency-of time-step frequency 2 q"list_item x list_item))
(if (equal? x len1)
(begin
(define x 100) ;; break loop
))

))
anan12345 is offline   Reply With Quote

Old   February 2, 2022, 20:32
Default
  #2
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34
AlexanderZ will become famous soon enoughAlexanderZ will become famous soon enough
your description is not clear for me.

you may save contours with predefined names, so you'll know them in advance
__________________
best regards


******************************
press LIKE if this message was helpful
AlexanderZ 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] funkyDoCalc with OF2.3 massflow NiFl OpenFOAM Community Contributions 14 November 25, 2020 04:30
Custom Parameter Output in Fluent using Scheme ishan_ae Fluent UDF and Scheme Programming 0 April 13, 2018 11:02
Help for the small implementation in turbulence model shipman OpenFOAM Programming & Development 25 March 19, 2014 11:08
OpenFOAM on MinGW crosscompiler hosted on Linux allenzhao OpenFOAM Installation 127 January 30, 2009 20:08
DecomposePar links against liblamso0 with OpenMPI jens_klostermann OpenFOAM Bugs 11 June 28, 2007 18:51


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