|
[Sponsors] |
Assigning material to wall using scheme command |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
January 27, 2017, 08:12 |
Assigning material to wall using scheme command
|
#1 |
Senior Member
Kushal Puri
Join Date: Nov 2013
Posts: 182
Rep Power: 12 |
I want to assign a material to wall using the scheme command. Anyone worked on it.
Thanks |
|
January 31, 2017, 03:51 |
|
#2 |
Senior Member
Join Date: Nov 2013
Posts: 1,965
Rep Power: 26 |
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") |
|
January 31, 2017, 05:23 |
|
#3 | |
Senior Member
Kushal Puri
Join Date: Nov 2013
Posts: 182
Rep Power: 12 |
Quote:
Thanks for your concern. |
||
January 31, 2017, 05:39 |
|
#4 |
Senior Member
Join Date: Nov 2013
Posts: 1,965
Rep Power: 26 |
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) Code:
(define set-wall-material (lambda (wallname material) (ti-menu-load-string (format #f "//define/boundary-conditions/wall ~a ,,, ~a ,,," wallname material)))) But what would you gain by doing that? |
|
January 31, 2017, 11:03 |
|
#5 | |
Senior Member
Kushal Puri
Join Date: Nov 2013
Posts: 182
Rep Power: 12 |
Quote:
(send (get-thread 2) set-var! 'material "steel") where 2 is my thread id and steel is my material. |
||
January 31, 2017, 11:10 |
|
#6 |
Senior Member
Join Date: Nov 2013
Posts: 1,965
Rep Power: 26 |
Okay, thank you very much for sharing your answer! Now I want to find out what the 'send' really does...
|
|
|
|
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 |