|
[Sponsors] |
May 19, 2022, 09:12 |
|
#21 |
New Member
Megan
Join Date: May 2022
Posts: 11
Rep Power: 4 |
Dear Yann,
After running surfaceCheck this is what it gives; // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // Reading surface from "constant/triSurface/geom90degarc.stl" ... Statistics: Triangles : 0 Vertices : 0 Bounding Box : (1.79769e+307 1.79769e+307 1.79769e+307) (-1.79769e+307 -1.79769e+307 -1.79769e+307) Region Size ------ ---- Surface has no illegal triangles. Triangle quality (equilateral=1, collapsed=0): 0 .. 0.05 : #0 Foam::error:rintStack(Foam::Ostream&) at ??:? #1 Foam::sigFpe::sigHandler(int) at ??:? #2 ? in "/lib/x86_64-linux-gnu/libc.so.6" #3 ? in "/opt/openfoam9/platforms/linux64GccDPInt32Opt/bin/surfaceCheck" #4 __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6" #5 ? in "/opt/openfoam9/platforms/linux64GccDPInt32Opt/bin/surfaceCheck" Floating point exception (core dumped) ----------------------------------------------------------------------- I don't understand what it is. |
|
May 19, 2022, 10:22 |
|
#22 |
Senior Member
Yann
Join Date: Apr 2012
Location: France
Posts: 1,236
Rep Power: 29 |
It seems there is something going on with your STL.
What software did you use to create it? Is it binary or ASCII? If it's binary, maybe try to export it in ASCII format and try again. Yann |
|
May 19, 2022, 10:29 |
|
#23 | |
New Member
Megan
Join Date: May 2022
Posts: 11
Rep Power: 4 |
Quote:
Yes I think so. I made the geometry with the blockMesh file, then imported it through Paraview in .pvd format and then changed the extension to .stl. I think it's not the right way. Is there any other way to do the .stl file? Are we supposed to use solid edge only to do the .stl? Thanks a lot! |
||
May 19, 2022, 11:12 |
|
#24 |
Senior Member
Yann
Join Date: Apr 2012
Location: France
Posts: 1,236
Rep Power: 29 |
You can create the geometry in any CAD software and then export the geometry as STL. You should be able to do this with Solid Edge indeed.
If you want to create a STL from blockMesh, you should load it into paraView, then use the "extract surface" filter to extract only the mesh boundaries and then file/save data/ and choose stl format. But this is quite an unusual and tedious process. Yann |
|
May 19, 2022, 14:20 |
|
#25 |
New Member
Megan
Join Date: May 2022
Posts: 11
Rep Power: 4 |
Okay, I will try this way. Thank you very much Yann for your help!
|
|
May 24, 2022, 05:09 |
|
#26 |
New Member
Megan
Join Date: May 2022
Posts: 11
Rep Power: 4 |
Dear Yann,
I made the geometry with AutoCAD and imported it into OpenFoam as .stl file. Finally it gives me the shape of the porous zone which I needed but the geometry isn't perfect when opened in paraview. Any suggestions how I could improve the geometry? Thank you. |
|
May 24, 2022, 06:08 |
|
#27 |
Senior Member
Yann
Join Date: Apr 2012
Location: France
Posts: 1,236
Rep Power: 29 |
Hi Megan,
Could you also display your STL file on the screenshot so we can see what is wrong? Also please note topoSet does not modify the mesh, it only assigns some cells or faces to different zones/patches, etc... The expected result is to get a porousBlockage cellZone made out of all the cells contained inside the volume of the STL file. Yann |
|
May 24, 2022, 06:28 |
|
#28 |
New Member
Megan
Join Date: May 2022
Posts: 11
Rep Power: 4 |
Hello Yann,
Attached is the screenshot of stl file. |
|
May 24, 2022, 10:18 |
|
#29 |
Senior Member
Yann
Join Date: Apr 2012
Location: France
Posts: 1,236
Rep Power: 29 |
OK then since your STL file seems to be fine, something must be going on with topoSetDict.
Could you post your whole case here? It would be easier to debug if I can have a look at the file and run few tests. Yann |
|
May 24, 2022, 10:45 |
|
#30 |
New Member
Megan
Join Date: May 2022
Posts: 11
Rep Power: 4 |
Hello Yann,
I have attached the blockMeshDict and topoSetDict files here. Thanks again! |
|
May 24, 2022, 10:56 |
|
#31 |
Senior Member
Yann
Join Date: Apr 2012
Location: France
Posts: 1,236
Rep Power: 29 |
Thanks, but can you send your whole case in a zip file? I cannot test anything without the STL file and I have to rebuild a case around your files if I want to be able to test it.
|
|
May 24, 2022, 11:14 |
|
#32 |
New Member
Megan
Join Date: May 2022
Posts: 11
Rep Power: 4 |
Hello Yann, sorry about that. I have attached the zip file here.
|
|
May 24, 2022, 11:45 |
|
#33 |
Senior Member
Yann
Join Date: Apr 2012
Location: France
Posts: 1,236
Rep Power: 29 |
Thank you!
I changed 2 parameters in the topoSetDict:
Code:
// porousBlockage { name porousBlockageCellSet; type cellSet; action new; source surfaceToCell; sourceInfo { file "constant/triSurface/Drawing4.stl"; outsidePoints ( (0.011 0.011 17.551) ); includeCut true; includeInside false; includeOutside false; nearDistance -1; curvature 1; // Optional entries useSurfaceOrientation false; fileType stl; scale 1.0; } } Let me know if this is the result your were expecting! Cheers, Yann |
|
May 24, 2022, 12:00 |
|
#34 |
New Member
Megan
Join Date: May 2022
Posts: 11
Rep Power: 4 |
Hello Yann,
This is exactly what I needed. I can't thank you enough for your timely help!! God bless you! |
|
February 23, 2023, 20:25 |
|
#35 | |
Senior Member
Farzad Faraji
Join Date: Nov 2019
Posts: 206
Rep Power: 8 |
After two years, I came up with the same problem and I encounter something which I forgot to mention. You should put your stl file in the main directory alongside 0, constant and system.
Thanks, Farzad Quote:
|
||
March 23, 2023, 00:55 |
|
#36 |
Senior Member
Farzad Faraji
Join Date: Nov 2019
Posts: 206
Rep Power: 8 |
Just one thing to remember, we need to name the generated cellSet using below red command;
Code:
/*--------------------------------*- C++ -*----------------------------------*\ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org \\ / A nd | Version: 6 \\/ M anipulation | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; object topoSetDict; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // actions ( { name seeedCellSet; // type cellSet; action new; source surfaceToCell; sourceInfo { file "seed3Space.stl"; outsidePoints ((-0.05 -0.05 -0.0494)); // definition of outside includeCut true; //false; // cells cut by surface includeInside false; //false; // cells not on outside of surf includeOutside false; // cells on outside of surf nearDistance -1; // cells with centre near surf //(set to -1 if not used) curvature -100; //0.9; // cells within nearDi } } { name seeed; type cellZoneSet; action new; source setToCellZone; sourceInfo { set seeedCellSet; } } //////////// ); // ************************************************************************* // // ************************************************************************* // // ************************************************************************* // Thanks, Farzad Last edited by farzadmech; March 23, 2023 at 02:18. |
|
Tags |
openfoam, stl file, toposetdict |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Using PengRobinsonGas EoS with sprayFoam | Jabo | OpenFOAM Running, Solving & CFD | 36 | July 16, 2024 04:52 |
how to calculate mass flow rate on patches and summation of that during the run? | immortality | OpenFOAM Post-Processing | 104 | February 16, 2021 09:46 |
what is swap4foam ?? | AB08 | OpenFOAM | 28 | February 2, 2016 02:22 |
[Other] Adding solvers from DensityBasedTurbo to foam-extend 3.0 | Seroga | OpenFOAM Community Contributions | 9 | June 12, 2015 18:18 |
OpenFOAM on MinGW crosscompiler hosted on Linux | allenzhao | OpenFOAM Installation | 127 | January 30, 2009 20:08 |