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

run-time post-processing for uniformity index

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 16, 2019, 09:18
Default run-time post-processing for uniformity index
  #1
jcw
New Member
 
Christian Wolf
Join Date: Mar 2009
Posts: 27
Rep Power: 17
jcw is on a distinguished road
Hello!


I would like to start a run-time post-processing: The output should be the 'uniformity index' (UI) with respect to velocity at a certain outlet patch. The problem is: How do I implement at function with is evaluated during simulation run. I use OF4.1 and do not have swak4Foam installed.


Thanks for advise!
jcw is offline   Reply With Quote

Old   April 16, 2019, 14:40
Default
  #2
Senior Member
 
Join Date: Aug 2015
Posts: 494
Rep Power: 15
clapointe is on a distinguished road
You can create a custom function object and put it in controlDict. It will be compiled and used at runtime. See :

https://github.com/OpenFOAM/OpenFOAM...nctionObject.H.

Caelan
clapointe is offline   Reply With Quote

Old   March 11, 2021, 03:46
Default Run time / On the fly Uniformity Index implementation
  #3
New Member
 
Balaji
Join Date: May 2013
Posts: 21
Rep Power: 13
Nealcaffrey is on a distinguished road
Here is a code which you can add in your functions inside controlDict for a user plane or a sampled surface

Code:
UniformityIndex_User_Plane1
      {
     
	
	    enabled         yes;
	    type            surfaceFieldValue;
	    
	    libs            ("libfieldFunctionObjects.so");
	    writeControl    timeStep;
	    writeInterval   1;
	    log             true;
	    writeFields     false;
	    regionType      sampledSurface;
	    name            User_Plane1 ;  
		sampledSurfaceDict
            {
                
                type        sampledTriSurfaceMesh;
        	surface     User_Plane_P1.stl;
        	source      cells;  // sample cells or boundaryFaces
        	interpolate false;
            }
	    	operation       uniformity; //- options: sum, areaIntegrate

	  //  weightField     phi;
	  //scaleFactor 1.183;
	    fields
	    (
		U
	    );    
    }
Nealcaffrey is offline   Reply With Quote

Reply

Tags
run-time processing, uniformity index


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
Fit the image using run time post processing Gaubtas OpenFOAM Post-Processing 2 August 7, 2019 09:38
Stuck in a Rut- interDyMFoam! xoitx OpenFOAM Running, Solving & CFD 14 March 25, 2016 08:09
Micro Scale Pore, icoFoam gooya_kabir OpenFOAM Running, Solving & CFD 2 November 2, 2013 14:58
AMI interDyMFoam for mixer nu problem danny123 OpenFOAM Programming & Development 8 September 6, 2013 03:34
dynamic Mesh is faster than MRF???? sharonyue OpenFOAM Running, Solving & CFD 14 August 26, 2013 08:47


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