|
[Sponsors] |
how to print a vector in openfoam terminal???? |
![]() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
![]() |
![]() |
#1 |
Member
Muhammad Usman
Join Date: Feb 2014
Posts: 91
Rep Power: 0 ![]() |
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. |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Senior Member
Cyprien
Join Date: Feb 2010
Location: Stanford University
Posts: 299
Rep Power: 18 ![]() |
Info << "blah blah"<< endl;
|
|
![]() |
![]() |
![]() |
Tags |
vector openfoam com |
|
|
![]() |
||||
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 |