|
[Sponsors] |
August 16, 2016, 07:27 |
Scale Surface
|
#1 |
Member
Join Date: Apr 2016
Posts: 91
Rep Power: 10 |
Hi,
I have a big stl file as geometry. After I used snappyHexMesh I use transformPoints to scale it (0.001 0.001 0.001) to meters. When I run my simulation I would like to plot the pressure over a specific surface. Therefore I created a stl surface and I use swakExpression in Control Dict to analyze the pressure like this: Code:
inlet_pressure { type swakExpression; outputControlMode timeStep; outputInterval 1; valueType surface; surfaceName Inlet; surface { type sampledTriSurfaceMesh; surface Inlet.stl; source cells; // What to sample: cells (nearest cell) interpolate false; } expression "p"; accumulations (average); verbose true; } Since I scale my geometry first, I can not import my stl surface, since it is of other dimensions. Therefore I tried to scale my stl surface by using: surfaceTransformPoints -scale "(0.001 0.001 0.001)" inlet.stl inlet2.stl There is no error but this is not working fine because my new geometry (surface) does not have the same origin as my geometry of snappyHexMesh. One way to fix this would be, to measure my geometry of snappyhexmesh and create a proper surface with the right dimensions and origin. But this seems to be not a neat solution. Do you have any suggestions to solve the problem? I can not import the stl file surface, use snappyHexMesh, use transformPoints , since my new surface would be recognized as a wall in the fluid region. I hope you can follow me Thank you! |
|
September 2, 2016, 09:29 |
|
#2 |
New Member
RobinZ
Join Date: Apr 2014
Posts: 19
Rep Power: 12 |
You can scale your stl with the surfaceConvert utility.
Use the -scale option. The command should look like: surfaceConvert -scale 0.001 inlet.stl inlet2.stl An advise here: you can use simpleFunctionObjects to postprocess fields on patches just in time... regards Robin |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[GMSH] Extrude surface using scale factor | nthiers | Mesh Generation & Pre-Processing | 0 | July 20, 2015 23:07 |
hard to convergent with SU2 4.0 for Euler adjoint | Xianguu | SU2 | 1 | July 14, 2015 18:09 |
How to find a good time scale strategy? | StefanG | CFX | 19 | June 8, 2012 09:41 |
[snappyHexMesh] snappyHexMesh aborting | Tobi | OpenFOAM Meshing & Mesh Conversion | 0 | November 10, 2010 04:23 |
Patran Volume Meshing | Deb | CFX | 19 | April 17, 2003 11:56 |