Saturday, November 24, 2018

Scale the Mesh

Scale the mesh:




By looking at:

https://www.cfd-online.com/Forums/openfoam-meshing/198268-how-scale-stl-when-importing-salome-any-cad-tool-openfoam.html

try:

transformPoints -scale '(0.001 0.001 0.001)'

https://cfd.direct/openfoam/user-guide/v6-basic-file-format/

https://openfoamwiki.net/index.php/TransformPoints4


What is the default mesh size???

http://www.salome-platform.org/forum/forum_10/549857363

-------------------------------------------------------------------------------------------------------
  -1
   164
         1  SI: Meter (newton)         2
    1.0000000000000000E+0    1.0000000000000000E+0    1.0000000000000000E+0
    2.7314999999999998E+2
    -1
    -1
  2420
         1
SMESH_Mesh
         1         0         0
Global Cartesian Coordinate System
    1.0000000000000000E+0    0.0000000000000000E+0    0.0000000000000000E+0
    0.0000000000000000E+0    1.0000000000000000E+0    0.0000000000000000E+0
    0.0000000000000000E+0    0.0000000000000000E+0    1.0000000000000000E+0
    0.0000000000000000E+0    0.0000000000000000E+0    0.0000000000000000E+0
    -1
    -1
  2411
         1         1         1        11
   2.0000000000000000E+01   4.5500000000000000E+02   0.0000000000000000E+00
         2         1         1        11
   0.0000000000000000E+00   4.5500000000000000E+02   0.0000000000000000E+00
         3         1         1        11
   2.0000000000000000E+01   5.2000000000000000E+02   0.0000000000000000E+00
         4         1         1        11
   0.0000000000000000E+00   5.2000000000000000E+02   0.0000000000000000E+00
         5         1         1        11
   2.0000000000000000E+01   1.6600000000000000E+02   5.0000000000000000E+02

-----------------------------------------------------------------------------------------------------
/*---------------------------------------------------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  4.1                                   |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
Build  : 4.1
Exec   : ideasUnvToFoam InletMesh.unv
Date   : Nov 26 2018
Time   : 18:32:30
Host   : "caelinux"
PID    : 22307
Case   : /home/caelinux/OpenFOAM/caelinux-4.1/run/tutorials/incompressible/icoFoam/test-InletMesh
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster
allowSystemOperations : Allowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Processing tag:164
Starting reading units at line 3.
l:1
units:"  SI: Meter (newton)"
unitType:2
Unit factors:
    Length scale       : 1
    Force scale        : 1
    Temperature scale  : 1
    Temperature offset : 273.15


-------------------------------------------------------------------------------
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  4.1                                   |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       vectorField;
    location    "constant/polyMesh";
    object      points;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //


882
(
(0 0 0)
(0.005 0 0)
(0.01 0 0)
(0.015 0 0)
(0.02 0 0)
(0.025 0 0)
(0.03 0 0)
(0.035 0 0)
(0.04 0 0)
(0.045 0 0)
(0.05 0 0)
(0.055 0 0)
(0.06 0 0)
(0.065 0 0)
(0.07 0 0)
(0.075 0 0)
(0.08 0 0)
(0.085 0 0)
(0.09 0 0)
(0.095 0 0)
(0.1 0 0)

---------------------------------

See: https://cfd.direct/openfoam/user-guide/v6-cavity/   ... length is 0.1 meters

No comments:

Post a Comment