|
[Sponsors] |
[blockMesh] #codeStream loop inside a blockMeshDict |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
April 11, 2015, 12:08 |
#codeStream loop inside a blockMeshDict
|
#1 |
Senior Member
Francois Beaubert
Join Date: Mar 2009
Location: Lille, France
Posts: 147
Rep Power: 17 |
Hi all,
I would like to use #codeStream to define the points of splines in a blockMeshDict. Here is the code snippet I use: Code:
spline 0 1 ( #codeStream { codeInclude #{ #include "pointField.H" #}; code #{ label nbPoints = 20; for (label i = 0; i < nbPoints; i++) { scalar xi = 0 + i*$L/(nbPoints-1); scalar yi = $Ri - ($Re-$Ri) * (6*pow(xi/$L,5) - 15*pow(xi/$L,4) + 10*pow(xi/$L,3)); os << point(xi, -yi, 0) << endl; // Info << point(xi, -yi, 0) << endl; } #}; }; ) I've got this error message: Code:
--> FOAM FATAL IO ERROR: Expected a '(' while reading VectorSpace<Form, Cmpt, nCmpt>, found on line 79 the punctuation token ';' file: /home/beaubert/OpenFOAM/beaubert-2.3.0/run/convergentMarie/convergentCase/constant/polyMesh/blockMeshDict.edges at line 79. From function Istream::readBegin(const char*) in file db/IOstreams/IOstreams/Istream.C at line 94. FOAM exiting Any idea ? Thanks a lot for your help Happy foaming François |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Other] Contribution a new utility: refine wall layer mesh based on yPlus field | lakeat | OpenFOAM Community Contributions | 58 | December 23, 2021 02:36 |
[Other] refineWallLayer Error | Yuby | OpenFOAM Meshing & Mesh Conversion | 2 | November 11, 2021 11:04 |
Star-CCM+ Macro - Loop over just wall boundary conditions | jbatchel | STAR-CCM+ | 5 | March 2, 2018 13:42 |
Pressure distribution on a wall | darazsbence | CFX | 17 | October 6, 2015 10:38 |
How to determine a point is inside a tetrahedral? | G.P. Xia | Main CFD Forum | 16 | January 12, 2000 11:15 |