|
[Sponsors] | |||||
[swak4Foam] visualize surface defined in swakExpression |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|
|
#1 |
|
Member
Fynn
Join Date: Feb 2016
Posts: 48
Rep Power: 11 ![]() |
Hi,
I am sampling values on a half-plane using swak. The example beneath works fine but I would like to know if there is a possibility to also export the defined surface as a stl. Or would it be possible to pre-define a surface that I can supply my swak expression with? Since my mesh is moving, it should not be a faceSet or faceZone, as these are moving with the mesh. Thanks ![]() Code:
name
{
type swakExpression;
valueType surface;
surfaceName name2;
surface {
type plane;
surfaceType searchablePlate;
span (100 -100 0);
origin (0 1 0);
normalVector (0 0 1);
basePoint (0 1 0);
// interpolate false;
}
verbose true;
expression "mag(U)";
ignore_unimplemented_simpleFunctionObject::movePoints true;
accumulations (
min
max
);
}
Last edited by PanPeter; February 22, 2018 at 03:55. |
|
|
|
|
|
|
|
|
#2 |
|
Member
Fynn
Join Date: Feb 2016
Posts: 48
Rep Power: 11 ![]() |
I can't define a half plane as described above:
When changing the expression to Code:
mag(Sf()) Has anybody defined a searchablePlate inside a swakExpression and could give me a hint how this could be solved? |
|
|
|
|
|
|
|
|
#3 |
|
Member
Fynn
Join Date: Feb 2016
Posts: 48
Rep Power: 11 ![]() |
Hi,
I've tried to find solutions to define the sampling over a half plane and couldn't find anything but the definition of external stl files. So I thought of this work-around: A plane is defined, instead of a half plane, and the swak expression only takes values of cells, whose dependent coordinate is smaller than some threshold (y0 in this case). Code:
underScreenSurface{
y0 // define it here
type swakExpression;
valueType surface;
surfaceName normalZ;
surface{
type plane;
basePoint (0 0 0);
normalVector (0 0 1);
}
verbose true;
expression "(pos().y <= $y0) ? mag(Sf()) : 0";
accumulations (
sum
);
}
|
|
|
|
|
|
|
|
|
#4 | |
|
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 52 ![]() ![]() |
Quote:
Code:
writeSurfaceOnConstruction true;
autoWriteSurface true;
surfaceFormat vtk;
__________________
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 |
||
|
|
|
||
![]() |
| Tags |
| moving mesh, surface sampling |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [ICEM] Surface mesh not sticking to surface | holtwong | ANSYS Meshing & Geometry | 2 | April 20, 2023 09:28 |
| Scale Surface | CellZone | OpenFOAM Post-Processing | 1 | September 2, 2016 09:29 |
| [ICEM] surface mesh merging problem | everest | ANSYS Meshing & Geometry | 44 | April 14, 2016 07:41 |
| user surface in post | xinzhangabc | CFX | 0 | February 24, 2005 07:29 |