|
[Sponsors] |
November 23, 2012, 09:01 |
M4 / blockMesh
|
#1 |
Member
Join Date: Oct 2012
Posts: 32
Rep Power: 13 |
Hi there,
can someone tell me if it is possible to calculate the arctan of some value in the M4 Preproccesor? Code:
define(height_step, 1.5) define(length_step, 3) define(alpha, calc(atan(height_step/length_step))) Code:
m4 blockMeshDict.m4 > blockMeshDict Code:
Undefined subroutine &main::atan called at -e line 1. Can someone help? Thanks a lot in advance! |
|
November 23, 2012, 09:24 |
|
#2 |
Member
Join Date: Oct 2012
Posts: 32
Rep Power: 13 |
Thanks a lot to startingwithCFD who gave the right hint, some perl-information was missing in the header:
Code:
define(calc, [esyscmd(perl -e 'use Math::Trig; print ($1)')]) dnl> |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[OpenFOAM.org] blockMesh issue on openfoam6 startup - ubuntu 16.04 | bjdarrer | OpenFOAM Installation | 7 | August 25, 2020 19:15 |
Is Playstation 3 cluster suitable for CFD work | hsieh | OpenFOAM | 9 | August 16, 2015 14:53 |
[blockMesh] External flow around cube with blockMesh | Woody8 | OpenFOAM Meshing & Mesh Conversion | 0 | March 31, 2015 14:54 |
[blockMesh] set of xyz data in blockMesh | psk | OpenFOAM Meshing & Mesh Conversion | 12 | August 27, 2013 08:37 |
Blockmesh cavity error message | tonitoney | OpenFOAM Installation | 2 | March 17, 2008 11:59 |