|
[Sponsors] |
Assigning material to wall using scheme command |
![]() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
![]() |
![]() |
#1 |
Senior Member
Kushal Puri
Join Date: Nov 2013
Posts: 182
Rep Power: 13 ![]() |
I want to assign a material to wall using the scheme command. Anyone worked on it.
Thanks |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Senior Member
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27 ![]() |
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") |
|
![]() |
![]() |
![]() |
![]() |
#3 | |
Senior Member
Kushal Puri
Join Date: Nov 2013
Posts: 182
Rep Power: 13 ![]() |
Quote:
Thanks for your concern. |
||
![]() |
![]() |
![]() |
![]() |
#4 |
Senior Member
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27 ![]() |
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? |
|
![]() |
![]() |
![]() |
![]() |
#5 | |
Senior Member
Kushal Puri
Join Date: Nov 2013
Posts: 182
Rep Power: 13 ![]() |
Quote:
(send (get-thread 2) set-var! 'material "steel") where 2 is my thread id and steel is my material. |
||
![]() |
![]() |
![]() |
![]() |
#6 |
Senior Member
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27 ![]() |
Okay, thank you very much for sharing your answer! Now I want to find out what the 'send' really does...
![]() |
|
![]() |
![]() |
![]() |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Basic Nozzle-Expander Design | karmavatar | CFX | 20 | March 20, 2016 09:44 |
Difficulty In Setting Boundary Conditions | Moinul Haque | CFX | 4 | November 25, 2014 18:30 |
Radiation interface | hinca | CFX | 15 | January 26, 2014 18:11 |
An error has occurred in cfx5solve: | volo87 | CFX | 5 | June 14, 2013 18:44 |
Multicomponent fluid | Andrea | CFX | 2 | October 11, 2004 06:12 |