CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > FLUENT

Gui

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

Reply
 
LinkBack Thread Tools Display Modes
Old   May 4, 2007, 09:00
Default Gui
  #1
saghir
Guest
 
Posts: n/a
hi, i want add a panel under Fluent to communicate with a my udf, i use this program but they do'nt work

(if(not(rp-var-object 'udf/valeur1)) (rp-var-define 'udf/valeur1 50 'real #f)) (if(not(rp-var-object 'udf/valeur2)) (rp-var-define 'udf/valeur2 2 'integer #f))

(define gui-udf-entree

(let((panel #f) (valeur1) (valeur2))

(define(update-cb . args) (cx-set-real-entry valeur1 (rpgetvar 'udf/valeur1)) (cx-set-integer-entry valeur2 (rpgetvar 'udf/valeur2)) ) (define(apply-cb . args) (rpsetvar 'udf/valeur1 (cx-show-real-entry valeur1)) (rpsetvar 'udf/valeur2 (cx-show-integer-entry valeur2)) )

(define gui-udf-entree

(let((panel #f) (valeur1) (valeur2))

(define(update-cb . args) (cx-set-real-entry valeur1 (rpgetvar 'udf/valeur1)) (cx-set-integer-entry valeur2 (rpgetvar 'udf/valeur2)) ) (define(apply-cb . args) (rpsetvar 'udf/valeur1 (cx-show-real-entry valeur1)) (rpsetvar 'udf/valeur2 (cx-show-integer-entry valeur2)) )

(lambda args (if(not panel) (begin (set! panel(cx-create-panel "Donnees pour l'UDF" apply-cb update-cb)) (set! panel(cx-create-real-entry panel "entrer valeur1" 'right-of 0 below 0 ))

(set! panel(cx-create-real-entry panel "entrer valeur2" 'right-of 0 below valeur1 ))

)) (cx-show-panel panel))))

(cx-add-item"User-Defined" "Donnees de l'UDF..."U #f cx-client?gui-entree)

  Reply With Quote

Old   May 4, 2007, 09:17
Default Re: Gui *NM*
  #2
Phil
Guest
 
Posts: n/a
  Reply With Quote

Old   May 4, 2007, 09:18
Default Re: Gui
  #3
Phil
Guest
 
Posts: n/a
you need to put #include "udf.h" at the start. Look up the fluent udf user guide.
  Reply With Quote

Old   May 4, 2007, 09:27
Default Re: Gui
  #4
saghir
Guest
 
Posts: n/a
i have #include "udf.h" it is part of the program which I added to a program which work without problem
  Reply With Quote

Old   May 4, 2007, 09:43
Default Re: Gui
  #5
Phil
Guest
 
Posts: n/a
the only thing you can do is take time tom compare it to working code until you find a problem. Also depends whether it compiles or not.
  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
TUI Commands from GUI? Carlos FLUENT 6 May 22, 2013 18:05
journal not work without GUI? sophie FLUENT 20 October 17, 2006 03:32
User Defined GUI Frederik FLUENT 0 June 23, 2006 16:12
Command Line vs. GUI Menus Go FLUENT 0 June 8, 2005 16:05
GUI window settings cmv CD-adapco 0 February 7, 2005 07:22


All times are GMT -4. The time now is 08:02.