CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Meshing & Mesh Conversion (https://www.cfd-online.com/Forums/openfoam-meshing/)
-   -   [Gmsh] Character expressions in gmsh? (https://www.cfd-online.com/Forums/openfoam-meshing/72003-character-expressions-gmsh.html)

ericnutsch January 21, 2010 23:21

Character expressions in gmsh?
 
How does one define a character expression then call it in gmsh?

This code works:
var=55;
Printf ("the variable is %g", var);

This code doesnt:
var="fish";
Printf ("the variable is %s", "fish");

I have had zero luck with Sprintf

I have considered that I am asking too much of the gmsh code, but it doesnt make sense for all the options and functions to be there if character expressions cant even be printed to the screen. Thoughts?

Thanks for your help!


(does it bother any one else that gmsh strings are really arrays and gmsh character expressions are really strings?)


All times are GMT -4. The time now is 00:32.