|
[Sponsors] |
error C2297: '*': illegal, right operand has type 'real [3]' |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
October 1, 2019, 09:49 |
error C2297: '*': illegal, right operand has type 'real [3]'
|
#1 |
New Member
yashar
Join Date: Aug 2019
Posts: 1
Rep Power: 0 |
hi everyone
I`m encountering with this error: error C2297: '*': illegal, right operand has type 'real [3]' when I compile my code: #include "udf.h" DEFINE_PROFILE(inlet_x_velocity, thread, position) { real x[ND_ND]; /* this will hold the position vector */ real y, h; face_t f; h = 0.252; /* inlet height in m */ begin_f_loop(f,thread) { F_CENTROID(x, f, thread); y = 19502.0 * pow(x,3.0) - 27.511 * pow(x,2.0) - 28.601 * x + 0.5247; /* non-dimensional y coordinate */ F_PROFILE(f, thread, position) = 0.1*(1.0-y*y); } end_f_loop(f, thread) } |
|
Tags |
udf |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
wallHeatFlux utility for an incompressible case | Mr.Jingles | OpenFOAM Post-Processing | 67 | April 6, 2023 04:25 |
rSF: p divergence in combustor (wt negative value) | zonda | OpenFOAM Pre-Processing | 4 | April 10, 2018 07:59 |
Problem with continuity simpleFoam kkl omega airfoils | ibelunatic | OpenFOAM Running, Solving & CFD | 0 | March 20, 2018 12:48 |
Divergent temperature in chtMultiRegion(Simple)Foam | akrasemann | OpenFOAM Running, Solving & CFD | 13 | March 24, 2014 03:54 |
Possible Bug in pimpleFoam (or createPatch) (or fluent3DMeshToFoam) | cfdonline2mohsen | OpenFOAM | 3 | October 21, 2013 10:28 |