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

Assigning material to wall using scheme command

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By pakk
  • 1 Post By pakk

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 27, 2017, 08:12
Default Assigning material to wall using scheme command
  #1
Senior Member
 
Kushal Puri
Join Date: Nov 2013
Posts: 182
Rep Power: 12
Kushal Puri is on a distinguished road
I want to assign a material to wall using the scheme command. Anyone worked on it.
Thanks
Kushal Puri is offline   Reply With Quote

Old   January 31, 2017, 03:51
Default
  #2
Senior Member
 
Join Date: Nov 2013
Posts: 1,965
Rep Power: 26
pakk will become famous soon enough
Find out what you need to type in the text user interface.

Probably something like "//define/boundary-conditions/wall", and then look at the answers that you have to type in Fluent.

Then put everything in one line. "//define/boundary-conditions/wall answer-1 answer-2 answer-3 ... answer-n"

Check if that works by typing this line (without the quotation marks) into Fluent.

If that works, you can also put this in scheme in this way:
Code:
(ti-menu-load-string "your text here")
Kushal Puri likes this.
pakk is offline   Reply With Quote

Old   January 31, 2017, 05:23
Default
  #3
Senior Member
 
Kushal Puri
Join Date: Nov 2013
Posts: 182
Rep Power: 12
Kushal Puri is on a distinguished road
Quote:
Originally Posted by pakk View Post
Find out what you need to type in the text user interface.

Probably something like "//define/boundary-conditions/wall", and then look at the answers that you have to type in Fluent.

Then put everything in one line. "//define/boundary-conditions/wall answer-1 answer-2 answer-3 ... answer-n"

Check if that works by typing this line (without the quotation marks) into Fluent.

If that works, you can also put this in scheme in this way:
Code:
(ti-menu-load-string "your text here")
Thanks for the reply, i already tried this but this is the lengthy procedure, i am looking for the some scheme command that should do this in single step.

Thanks for your concern.
Kushal Puri is offline   Reply With Quote

Old   January 31, 2017, 05:39
Default
  #4
Senior Member
 
Join Date: Nov 2013
Posts: 1,965
Rep Power: 26
pakk will become famous soon enough
My procedure will give you a scheme command that will do it in a single step.

You probably want to see something like
Code:
(set-wall-material 'bottomwall 'plastic)
As far as I know, it is not implemented in Fluent directly (but I could be wrong, and would like to hear that!). You can define it yourself:

Code:
(define set-wall-material (lambda (wallname material) (ti-menu-load-string (format #f "//define/boundary-conditions/wall ~a ,,, ~a ,,," wallname material))))
After fixing the command above (I probably guessed the wrong number of comma's, and am likely to have some parentheses wrong), this will work.

But what would you gain by doing that?
Kushal Puri likes this.
pakk is offline   Reply With Quote

Old   January 31, 2017, 11:03
Default
  #5
Senior Member
 
Kushal Puri
Join Date: Nov 2013
Posts: 182
Rep Power: 12
Kushal Puri is on a distinguished road
Quote:
Originally Posted by pakk View Post
My procedure will give you a scheme command that will do it in a single step.

You probably want to see something like
Code:
(set-wall-material 'bottomwall 'plastic)
As far as I know, it is not implemented in Fluent directly (but I could be wrong, and would like to hear that!). You can define it yourself:

Code:
(define set-wall-material (lambda (wallname material) (ti-menu-load-string (format #f "//define/boundary-conditions/wall ~a ,,, ~a ,,," wallname material))))
After fixing the command above (I probably guessed the wrong number of comma's, and am likely to have some parentheses wrong), this will work.

But what would you gain by doing that?
Thanks dear for the suggestion. I got the command


(send (get-thread 2) set-var! 'material "steel")

where 2 is my thread id and steel is my material.
Kushal Puri is offline   Reply With Quote

Old   January 31, 2017, 11:10
Default
  #6
Senior Member
 
Join Date: Nov 2013
Posts: 1,965
Rep Power: 26
pakk will become famous soon enough
Okay, thank you very much for sharing your answer! Now I want to find out what the 'send' really does...
pakk 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
Basic Nozzle-Expander Design karmavatar CFX 20 March 20, 2016 08:44
Difficulty In Setting Boundary Conditions Moinul Haque CFX 4 November 25, 2014 17:30
Radiation interface hinca CFX 15 January 26, 2014 17:11
An error has occurred in cfx5solve: volo87 CFX 5 June 14, 2013 17:44
Multicomponent fluid Andrea CFX 2 October 11, 2004 05:12


All times are GMT -4. The time now is 21:57.