CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums

Search Results

Register Blogs Community New Posts Updated Threads Search

Showing results 1 to 4 of 4
Search took 0.00 seconds.
Search: Posts Made By: bigphil
Forum: OpenFOAM February 7, 2023, 05:32
Replies: 7
Views: 10,080
Posted By bigphil
The total energy can be calculated as ...

The total energy can be calculated as

const volScalarField kineticEnergy("kineticEnergy", 0.5*magSqr(U));
const scalar totalKineticEnergy = gSum(kineticEnergy);

and the arithmetic...
Forum: OpenFOAM June 1, 2018, 06:37
Replies: 7
Views: 10,080
Posted By bigphil
vf.dimensions(); will return the dimensions...

vf.dimensions();

will return the dimensions of the vf field.

As regards "vf[cellI] gives a very large value when the real value is very small as 1e-100": this should not be the case: if...
Forum: OpenFOAM June 1, 2018, 04:21
Replies: 7
Views: 10,080
Posted By bigphil
Depending on the cells of interest, you could do...

Depending on the cells of interest, you could do something like this (assuming a volScalarField called "vf" exists; I am using a simple criterion but these can be changed to whatever you want):

...
Forum: OpenFOAM November 2, 2010, 15:01
Replies: 7
Views: 10,080
Posted By bigphil
Hi, I think that gSum() is global sum, which...

Hi,

I think that gSum() is global sum, which means that gSum() sums over all the processors in a parallel run.

Philip
Showing results 1 to 4 of 4

 
Forum Jump

All times are GMT -4. The time now is 23:00.