CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM

runtime cuttingplanes in simpleFoam

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

LinkBack Thread Tools Search this Thread Display Modes
Old   March 15, 2010, 08:26
Default runtime cuttingplanes in simpleFoam
New Member
Luc Bordier
Join Date: Feb 2010
Posts: 11
Rep Power: 13
lbordier is on a distinguished road

I'm trying to use sampling with cuttingplanes during run time.

For this, I modified the simpleFoam.C file by including some code taken from sample utility in the main while loop :

IOsampledSurfaces sSurfs

        // Handle geometry/topology changes
        //polyMesh::readUpdateState state = mesh.readUpdate();



        Info<< "write cuttingplanes at Time = " << runTime.timeName() << nl << endl;
All this works well, fields on cutting planes are written for each time step with the information given in sampleDict.

But now, I would like to use the fields on cuttingplane to compute statistics (mean of field, standard deviation on the cutting plane,...).

Can somenone help me to replace the sSurfs.write() statement with some code that could allow me to retrieve the fields value and to operate on them ?

lbordier is offline   Reply With Quote

Old   December 14, 2010, 08:31
Join Date: Feb 2010
Posts: 97
Rep Power: 13
fisch is on a distinguished road

i tried to do similar things.
I want to sample some fields (e.g. velocity) during runtime within a dynamic Mesh solver (in my special case piso).
My problem is that i'm getting a memory error as soon as i want to perform meshMotion.

Do you have an idea how to handle it?

fisch is offline   Reply With Quote


cutting, plane, sample, sampling, simplefoam

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Laminar simpleFoam and inviscid simpleFoam herenger OpenFOAM Running, Solving & CFD 7 July 11, 2013 06:27
Problem running simpleFoam on a multi element airfoil vinz OpenFOAM Running, Solving & CFD 18 April 11, 2013 11:26
Naca0012 k-e mpirun gives fpe whereas simpleFoam not Pierpaolo OpenFOAM 1 May 8, 2010 03:08
Error running simpleFoam in parallel skabilan OpenFOAM Running, Solving & CFD 2 August 29, 2008 09:42
SimpleFoam result for turbFoam initialisation philippose OpenFOAM Running, Solving & CFD 0 November 26, 2006 10:24

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