CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM Programming & Development

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

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

LinkBack Thread Tools Display Modes
Old   March 11, 2015, 13:31
Angry how to print a vector in openfoam terminal????
Muhammad Usman
Join Date: Feb 2014
Posts: 67
Rep Power: 3
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, 16:27
Senior Member
Join Date: Feb 2010
Location: Stanford University
Posts: 236
Rep Power: 9
Cyp is on a distinguished road
Info << "blah blah"<< endl;
Cyp is offline   Reply With Quote


vector openfoam com

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
Map of the OpenFOAM Forum - Understanding where to post your questions! wyldckat OpenFOAM 4 September 21, 2015 12:01
Differences between CFX and OpenFOAM regarding convergence and robustness! magjohan OpenFOAM Running, Solving & CFD 4 February 26, 2015 11:26
OpenFOAM Introductory Course at Politecnico di Milano, March 3-5 2015 lucchini OpenFOAM Announcements from Other Sources 0 January 15, 2015 12: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 17:52

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