|
[Sponsors] |
April 10, 2024, 08:37 |
How to initialize zero vectorField?
|
#1 |
New Member
S03r3n
Join Date: Feb 2024
Posts: 6
Rep Power: 2 |
Hello together,
how can I initialize a vectorField with only zero values? The following command does not work for me: const vectorField abc=vectorField::zero; Thanks in advance! Best regards |
|
April 11, 2024, 02:46 |
|
#2 | |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,689
Rep Power: 40 |
Quote:
Odd. How can you initialize a vectorField without any size???? The following would work, but this is also clear from the documentation: Code:
label len = ...; vectorField abc(len, Zero); |
||
Tags |
vectorfield |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
loading fluent data and turbo initialize in CFD post | shohag | FLUENT | 0 | June 29, 2020 20:26 |
using codestream to initialize internal velocity | shaoyx | OpenFOAM Pre-Processing | 2 | February 25, 2020 17:23 |
Subtract number from every value in vectorField | ali.m.1 | OpenFOAM Programming & Development | 0 | October 16, 2017 12:21 |
power of vectorField | matthias | OpenFOAM Programming & Development | 0 | August 19, 2014 08:52 |
scalar points to vectorField | deji | OpenFOAM | 2 | January 26, 2012 12:28 |