|
[Sponsors] |
November 3, 2024, 17:10 |
codeStream, how to get a vector
|
#1 |
New Member
Ilyas
Join Date: Oct 2024
Posts: 1
Rep Power: 0 |
Hi all, I'm new to OpenFoam.
I would like to ask how I can get a vector and tensor in codeStream? if I write: R 1.0; n1 vector (-1,0,0); #codeStream { code #{ scalar R = readScalar(dict.lookup("R")); vector pos1 = Vector(dict.lookup("n1")); #}; } I get error Thanks for your help! |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
The CoP Does not exist: Validating Aerodynamic forces through a "line of action" | ds4719 | Main CFD Forum | 14 | February 18, 2022 19:05 |
how to set periodic boundary conditions | Ganesh | FLUENT | 15 | November 18, 2020 07:09 |
[snappyHexMesh] snappyHexMesh error "Cannot determine normal vector from patches." | lethu | OpenFOAM Meshing & Mesh Conversion | 1 | June 3, 2020 08:49 |
The fl process could not be started. | SHAFKAT91 | Fluent UDF and Scheme Programming | 14 | September 2, 2019 04:48 |
Problem with Velocity Poisson Equation and Vector Potential Poisson Equation | mykkujinu2201 | Main CFD Forum | 1 | August 12, 2017 14:15 |