|
[Sponsors] |
March 5, 2015, 16:48 |
macro substitutions in fvSolution
|
#1 |
Senior Member
Dongyue Li
Join Date: Jun 2012
Location: Beijing, China
Posts: 838
Rep Power: 17 |
Hi guys,
for some reason I want to make this snippet workthis is quite abnormal to do this but this is just an example) Code:
PIMPLE { nOuterCorrectors $nCorrectors; nCorrectors 3; nNonOrthogonalCorrectors 0; } Code:
--> FOAM FATAL IO ERROR: Illegal dictionary entry or environment variable name "nCorrectors" Valid dictionary entries are 0 ( ) |
|
March 6, 2015, 10:32 |
|
#2 |
Senior Member
Olivier
Join Date: Jun 2009
Location: France, grenoble
Posts: 272
Rep Power: 17 |
hello,
Maybe put the scalar definition outside the PIMPLE Dict ... regards, olivier |
|
March 6, 2015, 11:19 |
|
#3 |
Senior Member
Alex
Join Date: Oct 2013
Posts: 337
Rep Power: 21 |
Hi,
The variable you are calling should be defined first, that's why it's complaining because the code can't recognize tha variable you call. I think that something like that should work instead: Code:
PIMPLE { nOuterCorrectors 3; nCorrectors $nOuterCorrectors; nNonOrthogonalCorrectors 0; } Regards, Alex
__________________
Web site where I present my Master's Thesis: foamingtime.wordpress.com The case I talk about in this site was solved with chtMultiRegionSimpleFoam solver and involves radiation. Some basic tutorials are also resolved step by step in the web. If you are interested in these matters, you are invited to come in! |
|
March 6, 2015, 11:22 |
|
#4 |
Senior Member
Dongyue Li
Join Date: Jun 2012
Location: Beijing, China
Posts: 838
Rep Power: 17 |
Thank you guys,
what a pity...I forgot why I wanna do this... |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to use the thread_storage macro? | lxlxlxt | FLUENT | 0 | February 10, 2014 21:53 |
StarCCM+ Command line options and Macro execution | isidp | STAR-CCM+ | 8 | January 29, 2013 05:00 |
Macro Trouble -Winows Explorer Crashes with Macro | Martin Castillo | FLUENT | 1 | July 25, 2007 04:18 |
Macro problem | cfddummy | Siemens | 1 | April 9, 2007 12:37 |
Call a macro from a macro | Flav | Siemens | 2 | July 1, 2004 05:42 |