CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Concatenate macro results in dictionary (https://www.cfd-online.com/Forums/openfoam-solving/178095-concatenate-macro-results-dictionary.html)

knuckles September 28, 2016 17:35

Concatenate macro results in dictionary
 
Suppose that I have a dictionary

Code:

instance alpha;
size    40;

I know that I can use macros "$instance" and "$size" to reference the values of these keys. I have found that

Code:

concatenatedResult $instance$size;
does not produce the concatenated value "alpha40" as I would have hoped. Is there a way of doing this?


All times are GMT -4. The time now is 18:05.