|
[Sponsors] |
May 24, 2022, 15:36 |
cutPlaneSurface - vtk files are not created
|
#1 |
New Member
Mary
Join Date: Sep 2021
Posts: 16
Rep Power: 4 |
Hello,
I've tried "cutPlaneSurface" with a tutorial "windAroundBuildings" in OpenFOAM v 9. In order to get a cutPlaneSurface file under a system folder, Code:
foamGet cutPlaneSurface Code:
/*--------------------------------*- C++ -*----------------------------------*\ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org \\ / A nd | Version: 9 \\/ M anipulation | ------------------------------------------------------------------------------- Description Writes out cut-plane surface files with interpolated field data in VTK format. \*---------------------------------------------------------------------------*/ point (0 0 0); normal (0 0 1); fields (U p); interpolate true; // If false, write cell data to the surface triangles. // If true, write interpolated data at the surface points. #includeEtc "caseDicts/postProcessing/surface/cutPlaneSurface.cfg" // ************************************************************************* // Code:
#includeFunc cutPlaneSurface After implementing as follows: Code:
surfaceFeatures blockMesh snappyHexMesh -overwrite simpleFoam So, I inserted, Code:
libs ("libsampling.so"); So, I tried a tutorial "pitzDaily", Code:
foamGet cutPlaneSurface Code:
/*--------------------------------*- C++ -*----------------------------------*\ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org \\ / A nd | Version: 9 \\/ M anipulation | ------------------------------------------------------------------------------- Description Writes out cut-plane surface files with interpolated field data in VTK format. \*---------------------------------------------------------------------------*/ point (0 0 0); normal (0 0 1); fields (p U); interpolate true; // If false, write cell data to the surface triangles. // If true, write interpolated data at the surface points. #includeEtc "caseDicts/postProcessing/surface/cutPlaneSurface.cfg" // ************************************************************************* // Code:
#includeFunc cutPlaneSurface Then, blockmesh simpleFoam After that, it worked well. Under each time folder of the postProcessing folder and cutPlaneSurface folder, vtk files were well created. I do not know why 'cutPlaneSurface' worked for the tutorial 'pitzDaily' but does not work for the tutorial 'windAroundBuilding'. I have compared them but I could not figure out what the reasons were. Can anyone help? Thanks in advance! |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Converting vtk files in a single binary file | raviramesh10 | SU2 | 0 | May 18, 2021 04:50 |
Error code 2 memory exceed no *. res files created | Alejandro Garcia | CFX | 2 | February 3, 2016 02:11 |
[General] Creating VTK image compatible to Paraview Visualizer | het | ParaView | 0 | January 7, 2016 08:20 |
critical error during installation of openfoam | Fabio88 | OpenFOAM Installation | 21 | June 2, 2010 03:01 |
CFX4.3 -build analysis form | Chie Min | CFX | 5 | July 12, 2001 23:19 |