|
[Sponsors] |
[snappyHexMesh] Problem with eMesh file in surfaceFeatureConvert |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 10, 2018, 07:30 |
Problem with eMesh file in surfaceFeatureConvert
|
#1 |
Senior Member
Sita Drost
Join Date: Mar 2009
Location: Arnhem, The Netherlands
Posts: 227
Rep Power: 18 |
Hi there,
I'm working through the snappyHexMesh tutorials of Tobias Holzmann (http://voluntary.holzmann-cfd.de/tra...enfoam-project, they're brilliant by the way, thank you Tobias!), using foam-extend-4.0 on Ubuntu 18.04. I've just created an eMesh file of my geometry stl by using surfaceFeatureExtract. When I try to convert this to an obj file using surfaceFeatureConvert, I get an error about the header of the eMesh file: Code:
/*---------------------------------------------------------------------------*\ | ========= | | | \\ / F ield | foam-extend: Open Source CFD | | \\ / O peration | Version: 4.0 | | \\ / A nd | Web: http://www.foam-extend.org | | \\/ M anipulation | For copyright notice see file Copyright | \*---------------------------------------------------------------------------*/ Build : 4.0-efcc2b1b7df8 Exec : surfaceFeatureConvert triSurface/regionSTL.eMesh eMesh.obj Date : Jul 10 2018 Time : 12:04:45 Host : administrator-HP-Z4-G4-Workstation PID : 9164 CtrlDict : "/home/administrator/foam/administrator-4.0/run/cases/designVincent/system/controlDict" Case : /home/administrator/foam/administrator-4.0/run/cases/designVincent nProcs : 1 SigFpe : Enabling floating point exception trapping (FOAM_SIGFPE). // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // Create time Input features file : "triSurface/regionSTL.eMesh" Output features file : eMesh.obj --> FOAM Serious Error : From function IOobject::readHeader(Istream&) in file db/IOobject/IOobjectReadHeader.C at line 89 Reading "/home/administrator/foam/administrator-4.0/run/cases/designVincent/constant/triSurface/regionSTL.eMesh" at line 2 First token could not be read or is not the keyword 'FoamFile' Check header is of the form: /*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | foam-extend: Open Source CFD | | \\ / O peration | Version: 4.0 | | \\ / A nd | Web: http://www.foam-extend.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class featureEdgeMesh; location "constant"; object triSurface/regionSTL.eMesh; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // --> FOAM FATAL IO ERROR: problem while reading header for object triSurface/regionSTL.eMesh file: /home/administrator/foam/administrator-4.0/run/cases/designVincent/constant/triSurface/regionSTL.eMesh at line 2. From function regIOobject::readStream() in file db/regIOobject/regIOobjectRead.C at line 68. FOAM exiting Just to be sure I tried adding the OpenFOAM header, but then it gives an error on the first character that comes after the header ("incorrect first token, expected '(', found on line 18 the punctuation token '{' "). I'm afraid errors will keep coming even if I'd correct that one... In other posts I noticed that others apparently had trouble with binary eMesh files, but that doesn't seem to be the problem in my case (it's plain text, us-ascii). It starts with Code:
{ externalStart 6343; internalStart 8052; featureEdges 9210 ( 2 5 Thanks in advance! Sita |
|
July 10, 2018, 08:24 |
Solved!
|
#2 |
Senior Member
Sita Drost
Join Date: Mar 2009
Location: Arnhem, The Netherlands
Posts: 227
Rep Power: 18 |
Alright, in the meantime I've installed OpenFOAM 6 next to my foam-extend-4.0, and with this everything works as expected. So apparently these functions don't work under foam-extend-4.0.
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Custom Thermophysical Properties | wsmith02 | OpenFOAM | 4 | June 1, 2023 14:30 |
Problem compiling a custom Lagrangian library | brbbhatti | OpenFOAM Programming & Development | 2 | July 7, 2014 11:32 |
[swak4Foam] Error bulding swak4Foam | sfigato | OpenFOAM Community Contributions | 18 | August 22, 2013 12:41 |
friction forces icoFoam | ofslcm | OpenFOAM | 3 | April 7, 2012 10:57 |
DecomposePar links against liblamso0 with OpenMPI | jens_klostermann | OpenFOAM Bugs | 11 | June 28, 2007 17:51 |