Hi all I´m new openFoam user.
I´m new openFoam user. I´m doing a very simple mesh and I read about using m4 for change the points by defining the points. It is possible to change the mesh by using equations in m4? How should I proceed?.
Hi Alejandro You can let perl
You can let perl do the calculations if you add the command
define(calc, [esyscmd(perl -e 'printf ($1)')])
in the header of your m4-file. You can then use the newly defined calculator by calling calc(expression)
would assign to CX, the x-value of a point at a distance R, with an angle of 45 degrees.
Thanks Rasmus, I was trying
I was trying to doit, but I have to say that it is the first time that I heard about m4, and less about m4 files. Im using kDevelop c/c++ to change set the mesh manually, and then the blockMesh utility. I do not understand how to use the m4 command. If u have some comment about I would appreciate it.
you have to be careful then, a
you have to be careful then, apparently m4 can take over your life...
There is a section in the WIKI on how to use m4 to generate a blockMesh. Did you see it?
|All times are GMT -4. The time now is 18:01.|