CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Running, Solving & CFD

Vector of arbitrary length

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   February 14, 2008, 07:26
Default How can I construct a vector o
  #1
New Member
 
Bassem Girgis
Join Date: Mar 2009
Posts: 3
Rep Power: 8
brgirgis is on a distinguished road
How can I construct a vector of arbitrary length? Will it have all the available options like ordinary field<type>, fvMatrix, etc..??
brgirgis is offline   Reply With Quote

Old   February 16, 2008, 15:01
Default Your question sounds like you
  #2
kar
Senior Member
 
Kārlis Repsons
Join Date: Mar 2009
Location: Latvia
Posts: 111
Rep Power: 8
kar is on a distinguished road
Your question sounds like you expect single vector to be a field!
kar is offline   Reply With Quote

Old   February 16, 2008, 15:56
Default I want to construct a vector f
  #3
New Member
 
Bassem Girgis
Join Date: Mar 2009
Posts: 3
Rep Power: 8
brgirgis is on a distinguished road
I want to construct a vector filed that is of arbitrary length not just 3.
brgirgis is offline   Reply With Quote

Old   February 17, 2008, 01:21
Default Hi, if the array is not too
  #4
Senior Member
 
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,894
Rep Power: 26
alberto will become famous soon enoughalberto will become famous soon enough
Hi,

if the array is not too big, you can follow these hints: http://www.cfd-online.com/OpenFOAM_D...tml?1202063931

If you want to store a bigger, or arbitrary (unknown a priori) sized arrays, you need to think to something smarter :-)

Regards,
Alberto
__________________
Alberto Passalacqua

GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as live DVD/USB, hard drive image and virtual image.
OpenQBMM - An open-source implementation of quadrature-based moment methods
alberto is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Vector devide by vector bhuve OpenFOAM Running, Solving & CFD 2 June 2, 2008 07:14
Arbitrary lagrangianeulerian ALE chegdan OpenFOAM Running, Solving & CFD 2 March 12, 2008 20:29
Arbitrary cyclic patch luca OpenFOAM Running, Solving & CFD 5 December 21, 2006 18:50
matching arbitrary meshes oulebsir redouane Main CFD Forum 5 July 18, 2006 04:06
Arbitrary Lagrangian-Eulerian Cristian Orozco Main CFD Forum 1 June 15, 2001 05:21


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