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

What is the unit vector along coordinates in OpenFOAM

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 7, 2019, 09:03
Default What is the unit vector along coordinates in OpenFOAM
  #1
Member
 
Wenming Yang
Join Date: Jun 2018
Posts: 42
Rep Power: 7
ywem is on a distinguished road
Dear Foamers,
I am expressing a vector which uses one unit vector along the coordinate (such as i along x coordinate). My problem is how to express i in OpenFOAM?
Thanks in advance.
ywem is offline   Reply With Quote

Old   March 7, 2019, 09:30
Default
  #2
Senior Member
 
Join Date: Mar 2018
Posts: 115
Rep Power: 8
anon_q is on a distinguished road
I don't really understand exactly what do you mean and by the way I am not an expert, but if you want to declare a vector in OpenFOAM:


Code:
vector i(1, 0, 0);
anon_q is offline   Reply With Quote

Old   March 9, 2019, 06:25
Default
  #3
Member
 
Wenming Yang
Join Date: Jun 2018
Posts: 42
Rep Power: 7
ywem is on a distinguished road
Quote:
Originally Posted by Evren Linda View Post
I don't really understand exactly what do you mean and by the way I am not an expert, but if you want to declare a vector in OpenFOAM:


Code:
vector i(1, 0, 0);
Dear Linda,
Thank you for your reply. You are exactly right. I thought it two complicated.
ywem is offline   Reply With Quote

Reply

Tags
vector along coordinates


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
Frequently Asked Questions about Installing OpenFOAM wyldckat OpenFOAM Installation 3 November 14, 2023 11:58
OpenFOAM Training, London, Chicago, Munich, Houston 2016-2017 cfd.direct OpenFOAM Announcements from Other Sources 0 September 14, 2016 03:19
OpenFOAM and twisted flow in cyclone unit rv82 OpenFOAM Running, Solving & CFD 5 January 10, 2016 04:38
OpenFoam output to CSV; correlate coordinates to internal values CoolKau OpenFOAM Post-Processing 0 October 29, 2014 08:03
64bitrhel5 OF installation instructions mirko OpenFOAM Installation 2 August 12, 2008 18:07


All times are GMT -4. The time now is 20:02.