CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Meshing & Mesh Conversion

[blockMesh] codeStream, how to get a vector

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 3, 2024, 17:10
Default codeStream, how to get a vector
  #1
New Member
 
Ilyas
Join Date: Oct 2024
Posts: 1
Rep Power: 0
Ilyas99 is on a distinguished road
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!
Ilyas99 is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 15:43.