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

how to print a vector in openfoam terminal????

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 11, 2015, 12:31
Angry how to print a vector in openfoam terminal????
  #1
Member
 
Muhammad Usman
Join Date: Feb 2014
Posts: 91
Rep Power: 0
13msmemusman is on a distinguished road
Hye i want to print a vector in openfoam which is
vector CoM = sum(mesh.V()*(alpha1*rho1 + (1-alpha1)*rho2)*mesh.C().dimensionedInternalField())/sum(mesh.V()*(alpha1*rho1+(1-alpha1)*rho2));

I tried Cout but it doesnt work as it only works for strings. please guide me how can i print it.
13msmemusman is offline   Reply With Quote

Old   March 11, 2015, 15:27
Default
  #2
Cyp
Senior Member
 
Cyprien
Join Date: Feb 2010
Location: Stanford University
Posts: 299
Rep Power: 18
Cyp is on a distinguished road
Info << "blah blah"<< endl;
Cyp is offline   Reply With Quote

Reply

Tags
vector openfoam com


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
Map of the OpenFOAM Forum - Understanding where to post your questions! wyldckat OpenFOAM 10 September 2, 2021 05:29
Differences between CFX and OpenFOAM regarding convergence and robustness! magjohan OpenFOAM Running, Solving & CFD 4 February 26, 2015 10:26
OpenFOAM Introductory Course at Politecnico di Milano, March 3-5 2015 lucchini OpenFOAM Announcements from Other Sources 0 January 15, 2015 11:17
problem running blockMesh in ubuntu terminal (openfoam) subhsngh OpenFOAM Running, Solving & CFD 6 June 26, 2013 08:02
ESI-OpenCFD Releases OpenFOAM v2.2.0 opencfd OpenFOAM Announcements from ESI-OpenCFD 13 March 30, 2013 16:52


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