|
[Sponsors] |
July 8, 2019, 12:43 |
Add Variables Together
|
#1 |
New Member
RoWoM
Join Date: Jul 2018
Posts: 5
Rep Power: 7 |
Foam Gods: Can results files be added together and scaled easily?
As they are text files I'm wondering if it's easier to bodge together something in python (after hunting all afternoon on the forums) ... but there has to be a better way? Looked in postProcess, but "add" and "scale" aren't there. funkySetFields isn't installed so would need compiling... (Using blueCore openfoam 4.x) |
|
July 9, 2019, 04:08 |
|
#2 | |
Senior Member
Zander Meiring
Join Date: Jul 2018
Posts: 125
Rep Power: 7 |
Quote:
Code:
postProcess -func "add(FIELD1, FIELD2)" |
||
July 9, 2019, 08:43 |
|
#3 |
New Member
RoWoM
Join Date: Jul 2018
Posts: 5
Rep Power: 7 |
Thanks so much ... will use that when I get to foam 5...
Until then it's python time... |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to add a new material in the fluent Database | MikeITA | FLUENT | 5 | December 13, 2021 22:40 |
How to select some variables not to be written into files? | ripperjack | OpenFOAM Programming & Development | 12 | August 7, 2020 11:15 |
[snappyHexMesh] refineWallLayer vs add layer | Astan | OpenFOAM Meshing & Mesh Conversion | 0 | March 18, 2019 12:03 |
Add or subtract two variables in TUI | Tarantino | Fluent UDF and Scheme Programming | 4 | October 17, 2017 12:36 |
Saving variables on a user patch with physical coordinates | Zoltan Turzo | CFX | 2 | April 20, 2000 15:05 |