|
[Sponsors] |
[snappyHexMesh] OpenFoam Fatal error : "Cannot find triSurfaceMesh at "" |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
June 17, 2020, 10:46 |
OpenFoam Fatal error : "Cannot find triSurfaceMesh at ""
|
#1 |
New Member
Anonymous
Join Date: Jun 2020
Posts: 6
Rep Power: 6 |
Hi,
I am a beginner at OpenFOAM and I am trying to run CFD external wind around buildings. hence, I used the tutorial Case of "WindAroundBuildings" and replaced the buildings.obj file in triSurface with a new file named buildings.obj that I had created in Rhinoceros3D. After doing this the snappyHexMesh generates an error : --> FOAM FATAL ERROR: Cannot find triSurfaceMesh at "" From function static Foam::fileName Foam::triSurfaceMesh::checkFile(const Foam::regIOobject&, const Foam::dictionary&, bool) in file searchableSurfaces/triSurfaceMesh/triSurfaceMesh.C at line 106. FOAM exiting I am not able to rectify it. It would be helpful to know how to resolve it. Thanks! |
|
June 18, 2020, 19:14 |
|
#2 |
New Member
Join Date: Jun 2020
Location: UK
Posts: 22
Rep Power: 6 |
Hi,
Are you sure the problem isn't just due to a syntax error in your snappyHexMeshDict (e.g. a missing ";")? Posting the file (or the test case) could help spotting the possible errors... Cheers, |
|
June 19, 2020, 02:58 |
|
#3 |
New Member
Anonymous
Join Date: Jun 2020
Posts: 6
Rep Power: 6 |
Hi,
Thank you for your response! I have attached the test case. Although I did not make any changes to the case files. Hopefully, it should not be a syntax error, but since I have just started with OpenFOAM it is likely I might have skipped something. Thank you! |
|
June 19, 2020, 04:51 |
|
#4 |
Member
Join Date: Sep 2018
Location: France
Posts: 62
Rep Power: 8 |
Hi !
When you ran surfaceFeatureExtract OpenFOAM cannot read the file buildings.obj by looking at the log.surfaceFeatureExtract. It is because in your actual path you have an invalid syntax for the folder "winAroundBuildings - Original" so you have to remove the space Cheers |
|
June 19, 2020, 05:15 |
|
#5 |
New Member
Anonymous
Join Date: Jun 2020
Posts: 6
Rep Power: 6 |
Hi,
Thank you for pointing out. I have corrected the file path and now snappyhexmesh has generated another error. Since the test case is now exceeding the file upload limit, I have attached the log files only. Thanks, |
|
June 19, 2020, 05:31 |
|
#6 |
Member
Join Date: Sep 2018
Location: France
Posts: 62
Rep Power: 8 |
Code:
--> FOAM Warning : From function Foam::layerParameters::layerParameters(const Foam::dictionary&, const Foam::polyBoundaryMesh&) in file snappyHexMeshDriver/layerParameters/layerParameters.C at line 266 Reading "F:/gkspl/CFD/CFD_run/OpenFOAM/testcase2/system/snappyHexMeshDict.addLayersControls.layers" from line 79 to line 79 Layer specification for "CAD.*" does not match any patch. Valid patches are 5 ( inlet outlet ground frontAndBack buildings ) |
|
June 19, 2020, 05:37 |
|
#7 |
New Member
Anonymous
Join Date: Jun 2020
Posts: 6
Rep Power: 6 |
addLayersControls
{ layers { "CAD.*" { nSurfaceLayers 2; } } relativeSizes true; expansionRatio 1.2; finalLayerThickness 0.5; minThickness 1e-3; } this text is being quoted from the tutorial case, I believe I do not have a "cad*" patch in my buildings. please suggest what changes in the script are required to do to the tutorial case to make it run for my building blocks? |
|
June 19, 2020, 05:50 |
|
#8 |
Member
Join Date: Sep 2018
Location: France
Posts: 62
Rep Power: 8 |
Yes you are right there is 5 patches known :
Code:
Valid patches are 5 ( inlet outlet ground frontAndBack buildings ) For instance you can replace "CAD.*" by buildings. When you have an issue with snappy try to see if there is a readable error message in the logs so you can have a clue where is the problem. |
|
June 19, 2020, 07:46 |
|
#9 |
New Member
Join Date: Jun 2020
Location: UK
Posts: 22
Rep Power: 6 |
Hi,
You can safely make the layers keyword empty in order to turn off the warning since "addLayers" option is off anyway, i.e.: layers { } Cheers, |
|
June 19, 2020, 08:12 |
|
#10 |
New Member
Anonymous
Join Date: Jun 2020
Posts: 6
Rep Power: 6 |
hi,
Thank you for your valuable feedback. I re-ran the simulation for both, the tutorial and the test case. As a result, I observed that 1 )In the tutorial case, snappyhexmesh generates the same warning "not having a CAD patch " but runs irrespective. which I have attached as tutorial_log. 2) After replacing cad with buildings, snappyhexmesh is no longer producing an error but I do not get the " buildings" region in my results, i.e there is no "buildings" named checkbox in the paraview mesh regions and the results are only showing the blockmesh. attached the test case logs and the paraview screenshot. thanks, |
|
June 19, 2020, 11:27 |
|
#11 |
New Member
Join Date: Jun 2020
Location: UK
Posts: 22
Rep Power: 6 |
Hi,
The reason for not having the "builidings" patch is that "buildings.obj" is located outside the background mesh, therefore not being captured by sHM. Please see attached the updated case. Cheers |
|
June 19, 2020, 15:11 |
|
#12 |
New Member
Anonymous
Join Date: Jun 2020
Posts: 6
Rep Power: 6 |
Hi,
Thank you so much for your time and efforts. This worked, I realized that the rhino was remapping the geometry coordinates, which was the probable cause of this. Cheers! |
|
Tags |
beginner, buildings, snappyhexmesh |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
"FOAM FATAL IO ERROR: Cannot find patchField entry for NACA6409_patch24311" | Pavlidis Chariton | OpenFOAM Running, Solving & CFD | 0 | October 7, 2019 05:57 |
OpenFOAM 4.0 Released | CFDFoundation | OpenFOAM Announcements from OpenFOAM Foundation | 2 | October 6, 2017 06:40 |
OpenFOAM v3.0.1 Training, London, Houston, Berlin, Jan-Mar 2016 | cfd.direct | OpenFOAM Announcements from Other Sources | 0 | January 5, 2016 04:18 |
OpenFOAM Training, London, Chicago, Munich, Sep-Oct 2015 | cfd.direct | OpenFOAM Announcements from Other Sources | 2 | August 31, 2015 14:36 |
Errors running allwmake in OpenFOAM141dev with WM_COMPILE_OPTION%3ddebug | unoder | OpenFOAM Installation | 11 | January 30, 2008 21:30 |