|
[Sponsors] |
November 18, 2016, 07:51 |
Multiply U field by a constant
|
#1 |
Member
Anirudh Kulkarni
Join Date: May 2016
Posts: 62
Rep Power: 9 |
Dear Foamers,
I want to multiply vectorField U with a constant value in all cells. How can I do it? Should I use, Code:
forAll(U, celli) { U[celli] *= constant; } |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
problems after decomposing for running | alessio.nz | OpenFOAM | 7 | March 5, 2021 04:49 |
constant velocity and alpha field | Maryam1988 | Main CFD Forum | 0 | June 24, 2015 09:53 |
field functions - table | crevoise | STAR-CCM+ | 3 | March 26, 2013 09:37 |
Field functions and table | crevoise | Siemens | 0 | March 20, 2013 10:51 |
Really big problems when creating own materials da | Jop | FLUENT | 0 | June 28, 2007 11:15 |