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 3 of 3
Search took 0.00 seconds.
Search: Posts Made By: Pat84
Forum: OpenFOAM Programming & Development August 1, 2013, 06:46
Replies: 4
Views: 2,803
Posted By Pat84
Since sum(scalar*rho*U*A)/sum(rho*U*A) =...

Since sum(scalar*rho*U*A)/sum(rho*U*A) = sum(scalar*U*A)/sum(U*A) for rho = const
and the inner product of U and A is saved in phi, I have changed my code:

int main(int argc, char *argv[])
{
...
Forum: OpenFOAM Programming & Development July 31, 2013, 17:51
Replies: 4
Views: 2,803
Posted By Pat84
The code is now running. It was a silly mistake. ...

The code is now running. It was a silly mistake.

This is the code:


Application
massAverage

Description
Calculates the average of the specified field over the specified density.
Forum: OpenFOAM Programming & Development July 31, 2013, 12:46
Replies: 4
Views: 2,803
Posted By Pat84
Mass weighted average

Hiho,

I´m modifying the tool patchAverage with the intention to calculate the mass weighted average, but I get an error while compiling the code. The reason is the "&" operator, which should make...
Showing results 1 to 3 of 3

 
Forum Jump

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