CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

unable to convert salome unv file into openfoam configuration

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 2, 2018, 05:43
Default unable to convert salome unv file into openfoam configuration
  #1
New Member
 
Pawan Sharma
Join Date: Dec 2018
Posts: 10
Rep Power: 7
pawansharma is on a distinguished road
Hiii,
After creating group of the mesh in salome i tried to covert .unv file into openfoam format but after running the <ideasUnvToFoam symmetric-mesh.unv>i m getting fatal errors which i'm attaching below




kuldeep@kuldeep-HP-15-TS-Notebook-PC:~/OpenFOAM/kuldeep-6/run/tutorials/incompressible/icoFoam/symmetric-mesh$ ls
symmetric-mesh.unv system
kuldeep@kuldeep-HP-15-TS-Notebook-PC:~/OpenFOAM/kuldeep-6/run/tutorials/incompressible/icoFoam/symmetric-mesh$ ideasUnvToFoam symmetric-mesh.unv
/*---------------------------------------------------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 6
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
Build : 6-d3fd147e6c65
Exec : ideasUnvToFoam symmetric-mesh.unv
Date : Dec 02 2018
Time : 16:11:59
Host : "kuldeep-HP-15-TS-Notebook-PC"
PID : 20491
I/O : uncollated
Case : /home/kuldeep/OpenFOAM/kuldeep-6/run/tutorials/incompressible/icoFoam/symmetric-mesh
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster (fileModificationSkew 10)
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


Processing tag:2420
Skipping tag 2420 on line 9
Skipping section at line 9.

Processing tag:2411
Starting reading points at line 20.
Read 87751 points.

Processing tag:2412
Starting reading cells at line 175525.
First occurrence of element type 22 for cell 1 at line 175526
--> FOAM Warning :
From function void readCells(Foam::IFstream&, Foam:ynamicList<Foam::cellShape>&, Foam:ynamicList<int>&, Foam:ynamicList<int>&, Foam:ynamicList<Foam::face>&, Foam:ynamicList<int>&, Foam:ynamicList<int>&)
in file ideasUnvToFoam.C at line 463
Reading "symmetric-mesh.unv" at line 175526
Cell type 22 not supported


--> FOAM FATAL IO ERROR:
Attempt to get back from bad stream

file: IStringStream.sourceFile at line 0.

From function bool Foam::Istream::getBack(Foam::token&)
in file db/IOstreams/IOstreams/Istream.C at line 56.

FOAM exiting

kuldeep@kuldeep-HP-15-TS-Notebook-PC:~/OpenFOAM/kuldeep-6/run/tutorials/incompressible/icoFoam/symmetric-mesh$
pawansharma is offline   Reply With Quote

Old   December 2, 2018, 06:29
Default
  #2
Senior Member
 
Peter Baskovich
Join Date: Jul 2014
Posts: 127
Rep Power: 11
pete20r2 is on a distinguished road
Extrude the mesh a nominal amount (1m, 0.001mm, whatever is easy), 2d elements are not supported by OF ( cell type 22 )
pete20r2 is offline   Reply With Quote

Old   December 2, 2018, 11:36
Default
  #3
New Member
 
Pawan Sharma
Join Date: Dec 2018
Posts: 10
Rep Power: 7
pawansharma is on a distinguished road
can you please explain me in detail the solution as i'm new to openfoam
pawansharma is offline   Reply With Quote

Old   December 2, 2018, 13:18
Default
  #4
Senior Member
 
anonymous
Join Date: Jan 2016
Posts: 416
Rep Power: 14
simrego is on a distinguished road
Hi!


If you try to import a 2D mesh into openfoam it will blow up.
If you have a 2D problem you still need a 3D mesh, but only 1 cell in the 3rd dimension.
So in salome extrude your mesh with 1 cell thickness. Then you can import it.
The thickness of the cell is up to you. The solver won't solve the equations in the 3rd dimension so it can be anything.
simrego is offline   Reply With Quote

Old   December 2, 2018, 13:42
Default
  #5
New Member
 
Pawan Sharma
Join Date: Dec 2018
Posts: 10
Rep Power: 7
pawansharma is on a distinguished road
i'm having 3d problem as i meshed it using netgen 1d-2d-3d. How to convert it into 3d mesh because i'm trying to extrude it but it is not able to do that. suggest me the solution please.
pawansharma is offline   Reply With Quote

Old   December 2, 2018, 15:20
Default
  #6
New Member
 
Pawan Sharma
Join Date: Dec 2018
Posts: 10
Rep Power: 7
pawansharma is on a distinguished road
i have reached upto this but after giving the command <paraFoam> paraFoam opens and then closes. i'm attatching the error shown in the command terminal





FOAM exiting

Segmentation fault (core dumped)
kuldeep@kuldeep-HP-15-TS-Notebook-PC:~/OpenFOAM/kuldeep-6/run/tutorials/incompressible/icoFoam/symmetric-mesh$ paraFoam
Created temporary 'symmetric-mesh.OpenFOAM'
I/O : uncollated


--> FOAM FATAL IO ERROR:

patch type 'patch' not constraint type 'empty'
for patch walls of field p in file "/home/kuldeep/OpenFOAM/kuldeep-6/run/tutorials/incompressible/icoFoam/symmetric-mesh/0/p"

file: /home/kuldeep/OpenFOAM/kuldeep-6/run/tutorials/incompressible/icoFoam/symmetric-mesh/0/p.boundaryField.walls from line 35 to line 35.

From function Foam::emptyFvPatchField<Type>::emptyFvPatchField(c onst Foam::fvPatch&, const Foam:imensionedField<Type, Foam::volMesh>&, const Foam::dictionary&) [with Type = double]
in file fields/fvPatchFields/constraint/empty/emptyFvPatchField.C at line 80.

FOAM exiting

Segmentation fault (core dumped)
kuldeep@kuldeep-HP-15-TS-Notebook-PC:~/OpenFOAM/kuldeep-6/run/tutorials/incompressible/icoFoam/symmetric-mesh$
pawansharma is offline   Reply With Quote

Old   December 2, 2018, 15:59
Default
  #7
Senior Member
 
anonymous
Join Date: Jan 2016
Posts: 416
Rep Power: 14
simrego is on a distinguished road
The boundaty definition is inconsistent for the "walls" patch.
In the p file you set empty type for the patch, but in your mesh definition (constant/polyMesh/boundary) the type is patch.
You can just rewrite the type in the constant/polyMesh/boundary file, or you can use changeDictionary, but I think the simplest if you just overwrite it by hand.
Of course if you will have to do it many times (ie. parameter study), you should use an utility for automatization.
simrego is offline   Reply With Quote

Old   May 15, 2019, 07:23
Default
  #8
New Member
 
Rakesh Awhad
Join Date: May 2019
Posts: 6
Rep Power: 6
rakesh.a is on a distinguished road
Quote:
Originally Posted by simrego View Post
Hi!


If you try to import a 2D mesh into openfoam it will blow up.
If you have a 2D problem you still need a 3D mesh, but only 1 cell in the 3rd dimension.
So in salome extrude your mesh with 1 cell thickness. Then you can import it.
The thickness of the cell is up to you. The solver won't solve the equations in the 3rd dimension so it can be anything.
I'm running problem with only 3D mesh (converted from 3D CAD mdel). Selecting mesh with tetrahedral elements. How can I eliminate type 22 elements.
Apologies for reopening this old post.
rakesh.a is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[swak4Foam] funkyDoCalc with OF2.3 massflow NiFl OpenFOAM Community Contributions 14 November 25, 2020 03:30
[foam-extend.org] Problems installing foam-extend-4.0 on openSUSE 42.2 and Ubuntu 16.04 ordinary OpenFOAM Installation 19 September 3, 2019 18:13
[waves2Foam] Tripping over several build issues with OpenFOAM 2.1.1 Yage OpenFOAM Community Contributions 18 February 15, 2016 02:02
2.0.x on Mac OSX niklas OpenFOAM Installation 74 March 28, 2012 16:46
"parabolicVelocity" in OpenFoam 2.1.0 ? sawyer86 OpenFOAM Running, Solving & CFD 21 February 7, 2012 11:44


All times are GMT -4. The time now is 14:07.