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

Search Results

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

Showing results 1 to 4 of 4
Search took 0.00 seconds.
Search: Posts Made By: gschaider
Forum: OpenFOAM Community Contributions August 14, 2013, 18:33
Replies: 12
Views: 1,342
Posted By gschaider
You want to sum up a field which is either 0 or...

You want to sum up a field which is either 0 or another value depending on an indicator (condition). So you have to have the ?: inside the sum.

Please: sit down with a piece of paper. Write down...
Forum: OpenFOAM Community Contributions August 13, 2013, 13:12
Replies: 12
Views: 1,342
Posted By gschaider
Just sum over a value that is 0 for the undesired...

Just sum over a value that is 0 for the undesired faces. The same as you do over the face areas. I really don't think that the MessageBoard is the forum for explaining the concept of a "weighted...
Forum: OpenFOAM Community Contributions August 12, 2013, 12:21
Replies: 12
Views: 1,342
Posted By gschaider
a. You'll need a variable that indicates whether...

a. You'll need a variable that indicates whether a face takes part in the average
b. Based on that variable you'll have to calculate the area/nr of the patches that are used. Later divide the sum...
Forum: OpenFOAM Community Contributions August 11, 2013, 19:41
Replies: 12
Views: 1,342
Posted By gschaider
You need another expression after the : (Probably...

You need another expression after the : (Probably "0"). But average won't give the value you'd expect. So you'll have to work with an indicator variable
Showing results 1 to 4 of 4

 
Forum Jump

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