|
[Sponsors] |
March 11, 2013, 12:03 |
interpolated field at iso-surface 0.5
|
#1 |
Senior Member
Andrea Ferrari
Join Date: Dec 2010
Posts: 319
Rep Power: 16 |
Hi all,
I would like to interpolate a specified field on the iso-surface 0.5 of the color function alpha1 (interFoam) and then sum up all the contribution to get a kind of average value of that field at the interface. Is there a simple way to do that? I tried with sampling and function object but i didn't manage to get what i want. any help is appreciated! best andrea |
|
March 12, 2013, 05:26 |
|
#2 |
Senior Member
Yogesh Bapat
Join Date: Oct 2010
Posts: 102
Rep Power: 15 |
Hello,
You can take a look at isoSurface class in sampledSurface. I have not tried it, but I think it will help you. Regards, -Yogesh |
|
March 12, 2013, 06:50 |
|
#3 |
Senior Member
Andrea Ferrari
Join Date: Dec 2010
Posts: 319
Rep Power: 16 |
Hi,
thanks i solved it adding these lines in my sampleDict constantIso { // Iso surface for constant values. // Triangles guaranteed not to cross cells. type isoSurfaceCell; // always triangulated isoField alpha1; isoValue 0.5; interpolate false; regularise false; // do not simplify // mergeTol 1e-10; // Optional: fraction of mesh bounding box // to merge points (default=1e-6) } best andrea |
|
March 13, 2013, 19:58 |
|
#4 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
Code:
createInterface { type createSampledSurface; outputControl timeStep; outputInterval 1; surfaceName interface; surface { type isoSurface; isoField alpha1; isoValue 0.5; interpolate true; } } height { type swakExpression; valueType surface; surfaceName interface; verbose true; expression "pos().y"; accumulations ( min max ); }
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
||
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Moving mesh | Niklas Wikstrom (Wikstrom) | OpenFOAM Running, Solving & CFD | 122 | June 15, 2014 07:20 |
[blockMesh] grading in the BlockMesh | Astarta | OpenFOAM Meshing & Mesh Conversion | 1 | May 23, 2011 16:39 |
[blockMesh] Failed 5 mesh checks | Astarta | OpenFOAM Meshing & Mesh Conversion | 3 | May 10, 2011 15:42 |
Iso Surface for a region | FabioT | FLUENT | 0 | December 9, 2010 07:05 |
Vorticity iso surface around propeller in CCM+ | Dan | Siemens | 2 | January 23, 2007 15:17 |