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

Scale Surface

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 16, 2016, 07:27
Default Scale Surface
  #1
Member
 
Join Date: Apr 2016
Posts: 66
Rep Power: 5
CellZone is on a distinguished road
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;
}
Normally this is working fine, but:

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!
CellZone is offline   Reply With Quote

Old   September 2, 2016, 09:29
Default
  #2
New Member
 
RobinZ
Join Date: Apr 2014
Posts: 19
Rep Power: 7
RobinZ is on a distinguished road
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
RobinZ is offline   Reply With Quote

Reply

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
[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


All times are GMT -4. The time now is 07:33.