CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Post-Processing

Swak4foam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 7, 2019, 04:12
Default Swak4foam
  #1
Member
 
Farshad
Join Date: Sep 2010
Posts: 36
Rep Power: 15
farshadexp is on a distinguished road
Hi
I use swak4foam to calculate Nusselt number on a boundary:

Code:
functions
{
		{
		    type swakExpression;
		    ignore_unimplemented_simpleFunctionObject::movePoints    true;
		    valueType faceSet;
               outputControlMode   timeStep;
		    outputInterval    1;
		    writeStartTime	0;
		    fieldName k0;
		    verbose true;
		    autowrite false;
		    accumulations (average);
		    log true;
		}*/

    NusseltNumber
	    {
		type patchExpression;
		ignore_unimplemented_simpleFunctionObject::movePoints    true;
		outputControlMode   timeStep;
		outputInterval    1;
		patches
		(
			hot
			cold
		);
		verbose true;
		variables
		(
			"T0=293;"
			"L=1;"
			"Th=307;"
			"Tc=288;"
		);
		expression "snGrad(T)*L*((0.00000000000001*(pow(T,4)))+(0.00000000005*(pow(T,3)))-(0.00000008*(pow(T,2)))+(0.0001*T)-0.0006)/(((0.00000000000001*(pow(T0,4)))+(0.00000000005*(pow(T0,3)))-(0.00000008*(pow(T0,2)))+(0.0001*T0)-0.0006)*(Th-Tc))";
		accumulations
		(
			average
			max
			weightedAverage
		);*/
		log         true;
	    }
}
But as you see it just only report average, maximum and weighted average. How can I have Nusselt number for all cells along a patch?
Appreciated
farshadexp is offline   Reply With Quote

Reply

Tags
openfoam, swak4foam


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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[swak4Foam] difficulties installing swak4foam newbie29 OpenFOAM Community Contributions 120 October 21, 2022 04:01
InterDyMFoam+simpleFunctionObject Elham OpenFOAM Running, Solving & CFD 5 July 10, 2017 11:59
source term in near wall cell rajcfd OpenFOAM Pre-Processing 5 February 1, 2016 10:31
[swak4Foam] Install swak4Foam on OpenFOAM1.7.1 on Ubuntu 13.04 kobayashi OpenFOAM Community Contributions 2 January 5, 2014 17:33
[swak4Foam] fails in parallel with -otherTime? Phicau OpenFOAM Community Contributions 3 June 26, 2013 13:00


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