CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Meshing & Mesh Conversion

[Commercial meshers] CCM+ Mesh Conversion

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By wyldckat

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 7, 2013, 10:22
Default CCM+ Mesh Conversion
  #1
Member
 
Mizo
Join Date: Jan 2013
Posts: 34
Rep Power: 13
Ingenieur is on a distinguished road
Hello Foamers,

does any one know, how can I convert a Starccm+ file (.sim) to openFoam, so that OpenFOAM can read the converted mesh of ccm+?

for any help I will be grateful,

greetings,

Mizo
Ingenieur is offline   Reply With Quote

Old   June 10, 2013, 14:23
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings Mizo,

You'll need two things:
  1. To export just the mesh in ".ccm" format.
  2. Then to build and use ccm26ToFoam: http://openfoamwiki.net/index.php/Ccm26ToFoam
Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   June 11, 2013, 03:43
Default
  #3
Member
 
Mizo
Join Date: Jan 2013
Posts: 34
Rep Power: 13
Ingenieur is on a distinguished road
Thank u Bruno
Ingenieur is offline   Reply With Quote

Old   June 19, 2013, 06:36
Default
  #4
Member
 
Mizo
Join Date: Jan 2013
Posts: 34
Rep Power: 13
Ingenieur is on a distinguished road
Hi Bruno,

am trying to solve a case (unsteady -PISO) but i cant get the convergence.
delta T : 0.0001
my mesh is 120 mil. cells
do u have a solution of the (unconverged function walls) with a very very big courant number? like his:

Time = 0.0281
Courant Number mean: 200.98646479 max: 483002494258
smoothSolver: Solving for nuTilda, Initial residual = 0.776899796969, Final residual = 9.35320630902e-07, No Iterations 204
bounding nuTilda, min: -148081.560032 max: 2627072.04411 average: 8.44973042553
6059 faces with unconverged wall functions on patch Boden
189 faces with unconverged wall functions on patch belt
925 faces with unconverged wall functions on patch Rad_VL
30 faces with unconverged wall functions on patch Rad_VR
16 faces with unconverged wall functions on patch Rad_HL
19 faces with unconverged wall functions on patch Rad_HR
73866 faces with unconverged wall functions on patch Underbody
16040 faces with unconverged wall functions on patch Front_Tires
1390 faces with unconverged wall functions on patch Rear_Tires
2934 faces with unconverged wall functions on patch Bohr_VA

525 faces with unconverged wall functions on patch Suspension
9608 faces with unconverged wall functions on patch Power

81840 faces with unconverged wall functions on patch Wrapp Exterior10
20109 faces with unconverged wall functions on patch Package
884 faces with unconverged wall functions on patch System
146 faces with unconverged wall functions on patch Fine_Exterior
5457 faces with unconverged wall functions on patch Exterior
3923 faces with unconverged wall functions on patch Wand_922
4 faces with unconverged wall functions on patch Wrapped_Surface_C218_Komplett_Gap_Closure_Faces
smoothSolver: Solving for Ux, Initial residual = 0.531876492884, Final residual = 9.08285502316e-07, No Iterations 64
smoothSolver: Solving for Uy, Initial residual = 0.497932997079, Final residual = 9.22073404821e-07, No Iterations 59
smoothSolver: Solving for Uz, Initial residual = 0.333758685155, Final residual = 9.08170020727e-07, No Iterations 46
GAMG: Solving for p, Initial residual = 6.15720458897e-09, Final residual = 3.66424545854e+22, No Iterations 1000
GAMG: Solving for p, Initial residual = 4.59788012312e-05, Final residual = 2.88958539135e+28, No Iterations 1000
GAMG: Solving for p, Initial residual = 4.59784422852e-05, Final residual = 2.88958622398e+28, No Iterations 1000
time step continuity errors : sum local = 3.42521516445e+96, global = 6.51568390001e+91, cumulative = 6.51568390001e+91
GAMG: Solving for p, Initial residual = 5.43773101144e-05, Final residual = 2.2335068526e+28, No Iterations 1000
[192] #0 Foam::error:rintStack(Foam::Ostream&)--------------------------------------------------------------------------
An MPI process has executed an operation involving a call to the
"fork()" system call to create a child process. Open MPI is currently
operating in a condition that could result in memory corruption or
other system errors; your MPI job may hang, crash, or produce silent
data corruption. The use of fork() (or system() or other calls that
create child processes) is strongly discouraged.

The process that invoked fork was:
Local host: aero9134 (PID 12855)
MPI_COMM_WORLD rank: 192

If you are *absolutely sure* that your application will successfully
and correctly survive a call to fork(), you may disable this warning
by setting the mpi_warn_on_fork MCA parameter to 0.
--------------------------------------------------------------------------
addr2line failed
[192] #1 Foam::sigFpe::sigFpeHandler(int) addr2line failed
[192] #2 Uninterpreted: /lib64/libc.so.6 addr2line failed
[192] #3 Foam::GAMGSolver::scalingFactor(Foam::Field<double >&, Foam::Field<double> const&, Foam::Field<double> const&, Foam::Field<double> const&) const addr2line failed
[192] #4 Foam::GAMGSolver::Vcycle(Foam::PtrList<Foam::lduMa trix::smoother> const&, Foam::Field<double>&, Foam::Field<double> const&, Foam::Field<double>&, Foam::Field<double>&, Foam::Field<double>&, Foam::PtrList<Foam::Field<double> >&, Foam::PtrList<Foam::Field<double> >&, unsigned char) const addr2line failed
[192] #5 Foam::GAMGSolver::solve(Foam::Field<double>&, Foam::Field<double> const&, unsigned char) const addr2line failed
[192] #6 Foam::fvMatrix<double>::solve(Foam::dictionary const&) addr2line failed
[192] #7 Uninterpreted: pisoFoam
[192] #8 __libc_start_main addr2line failed
[192] #9 Foam::regIOobject::writeObject(Foam::IOstream::str eamFormat, Foam::IOstream::versionNumber, Foam::IOstream::compressionType) const
[134:12855] *** Process received signal ***
[134:12855] Signal: Floating point exception (8)
[134:12855] Signal code: (-6)
[134:12855] Failing at address: 0xc6af00003237
[134:12855] [ 0] /lib64/libc.so.6 [0x2b5365441300]
[134:12855] [ 1] /lib64/libc.so.6(gsignal+0x35) [0x2b5365441295]
[134:12855] [ 2] /lib64/libc.so.6 [0x2b5365441300]
2.1.2/lib/linux64GccDPOpt/libFOAM.so(_ZNK4Foam10GAMGSolver13scalingFactorERN S_5FieldIdEERKS2_S5_S5_+0x12b) [0x2b536459c43b]
(_ZNK4Foam10GAMGSolver6VcycleERKNS_7PtrListINS_9ld uMatrix8smootherEEERNS_5FieldIdEERKS8_S9_S9_S9_RNS 1_IS8_EESD_h+0x137f) [0x2b536459f32f]
(_ZNK4Foam10GAMGSolver5solveERNS_5FieldIdEERKS2_h+ 0x4bf) [0x2b536459ffaf]
2.1.2/lib/linux64GccDPOpt/libfiniteVolume.so(_ZN4Foam8fvMatrixIdE5solveERKNS _10dictionaryE+0x140) [0x2b536351b450]
[134:12855] [ 7] oodles [0x4215ef]
[134:12855] [ 8] /lib64/libc.so.6(__libc_start_main+0xf4) [0x2b536542e9c4]
[134:12855] [ 9] oodles(_ZNK4Foam11regIOobject11writeObjectENS_8IOs tream12streamFormatENS1_13versionNumberENS1_15comp ressionTypeE+0xd1) [0x41cd29]
[134:12855] *** End of error message ***
--------------------------------------------------------------------------

thank u in advance

Mizo

Ingenieur is offline   Reply With Quote

Old   June 20, 2013, 16:36
Default
  #5
New Member
 
L.Tuominen
Join Date: Jul 2010
Posts: 8
Rep Power: 15
tuominen is on a distinguished road
What checkMesh say??
tuominen is offline   Reply With Quote

Old   June 21, 2013, 03:44
Default
  #6
Member
 
Mizo
Join Date: Jan 2013
Posts: 34
Rep Power: 13
Ingenieur is on a distinguished road
Hell Tuominen,

The Mesh is Ok, but only the Skewness is not good (***Max Skewness=17)
I actually had a Case with (***Max Skew =22) and the solution was fine converged but the cells number was bretty smaller than now
Ingenieur is offline   Reply With Quote

Old   June 21, 2013, 04:04
Default .csv file format to import in Open foam for meshing
  #7
psk
Member
 
david
Join Date: Jun 2013
Location: Montreal, Canada
Posts: 62
Rep Power: 11
psk is an unknown quantity at this point
Hai OF friends,

I am David,
My interest is flapping & flexible wing MAV.

Generally for meshing we need cad files in .stl /.obj format for import. For my problem instead of having .stl/.obj format I have matlab m file format. I don't know how to import m file in open foam for meshing. kindly give your suggestions & feedback.


Many Thanks,

david
psk is offline   Reply With Quote

Old   June 21, 2013, 05:11
Default
  #8
Member
 
Mizo
Join Date: Jan 2013
Posts: 34
Rep Power: 13
Ingenieur is on a distinguished road
Hi David,

I think you have to convert it to Nastran file at first (maybe with catia) then import the file into ANSA program and then output as STL file.

best regards
Ingenieur is offline   Reply With Quote

Old   June 21, 2013, 05:37
Default
  #9
psk
Member
 
david
Join Date: Jun 2013
Location: Montreal, Canada
Posts: 62
Rep Power: 11
psk is an unknown quantity at this point
Thanks for reply Mizo,

Its not like geometry, I mark the points on my wing by using camera to capture the wing movement and extract the xyz coordinates of my flapping flexible wing by using DLVT5 matlab code.The output i got is .csv format, from that I plot the data in matlab for seeing the replication of my wing. please see my post Title:Mosquito Analysis in Open Foam for your reference.

If its one frame, what ever you are telling OK, because each frame its gives geometry from that to make STL format, but I don't want that one, basically its quasi steady analysis. I want to do unsteady.

Here is totally 10 frame if i plot the data in matlab to make loop and its continuous flapping like insect.

I have only matlab file I don't how to incorporate with open foam for meshing?

please give me your suggestions about my queries.


Many thanks,
david

psk is offline   Reply With Quote

Old   June 21, 2013, 06:28
Default
  #10
Member
 
Mizo
Join Date: Jan 2013
Posts: 34
Rep Power: 13
Ingenieur is on a distinguished road
Hi David,

as I know, it's only possible for STL/Nastran fils to be simulated with OF.
U have o convert your matlab file .csv to one of these formats.
as workaround you can convert your file to Binary then import it to ansa to get stl/ nastran in (ASCII)
Ingenieur is offline   Reply With Quote

Old   June 21, 2013, 09:56
Default
  #11
psk
Member
 
david
Join Date: Jun 2013
Location: Montreal, Canada
Posts: 62
Rep Power: 11
psk is an unknown quantity at this point
Thanks Mizo for your quick reply and kind information,

I try my best.


Many thanks,
David
psk is offline   Reply With Quote

Old   July 23, 2013, 09:37
Default
  #12
Member
 
Mizo
Join Date: Jan 2013
Posts: 34
Rep Power: 13
Ingenieur is on a distinguished road
Hi Bruno,

Could you please tell me how can I convert the Whole FOAM Case (with MRF and porourse Media) to fluent, I used the utility (foamMeshToFluent) but the MRF & porouse were not between the BC of the new Fluent mesh

thanx alot in advance

best regards

Mizo
Ingenieur is offline   Reply With Quote

Old   August 5, 2013, 09:37
Default
  #13
New Member
 
Join Date: Jan 2013
Posts: 17
Rep Power: 13
Za-ck is on a distinguished road
Quote:
Originally Posted by Ingenieur View Post
Hi Bruno,

am trying to solve a case (unsteady -PISO) but i cant get the convergence.
delta T : 0.0001
my mesh is 120 mil. cells
do u have a solution of the (unconverged function walls) with a very very big courant number? like his:

Time = 0.0281
Courant Number mean: 200.98646479 max: 483002494258
smoothSolver: Solving for nuTilda, Initial residual = 0.776899796969, Final residual = 9.35320630902e-07, No Iterations 204
bounding nuTilda, min: -148081.560032 max: 2627072.04411 average: 8.44973042553
6059 faces with unconverged wall functions on patch Boden
189 faces with unconverged wall functions on patch belt
925 faces with unconverged wall functions on patch Rad_VL
30 faces with unconverged wall functions on patch Rad_VR
16 faces with unconverged wall functions on patch Rad_HL
19 faces with unconverged wall functions on patch Rad_HR
73866 faces with unconverged wall functions on patch Underbody
16040 faces with unconverged wall functions on patch Front_Tires
1390 faces with unconverged wall functions on patch Rear_Tires
2934 faces with unconverged wall functions on patch Bohr_VA

525 faces with unconverged wall functions on patch Suspension
9608 faces with unconverged wall functions on patch Power

81840 faces with unconverged wall functions on patch Wrapp Exterior10
20109 faces with unconverged wall functions on patch Package
884 faces with unconverged wall functions on patch System
146 faces with unconverged wall functions on patch Fine_Exterior
5457 faces with unconverged wall functions on patch Exterior
3923 faces with unconverged wall functions on patch Wand_922
4 faces with unconverged wall functions on patch Wrapped_Surface_C218_Komplett_Gap_Closure_Faces
smoothSolver: Solving for Ux, Initial residual = 0.531876492884, Final residual = 9.08285502316e-07, No Iterations 64
smoothSolver: Solving for Uy, Initial residual = 0.497932997079, Final residual = 9.22073404821e-07, No Iterations 59
smoothSolver: Solving for Uz, Initial residual = 0.333758685155, Final residual = 9.08170020727e-07, No Iterations 46
GAMG: Solving for p, Initial residual = 6.15720458897e-09, Final residual = 3.66424545854e+22, No Iterations 1000
GAMG: Solving for p, Initial residual = 4.59788012312e-05, Final residual = 2.88958539135e+28, No Iterations 1000
GAMG: Solving for p, Initial residual = 4.59784422852e-05, Final residual = 2.88958622398e+28, No Iterations 1000
time step continuity errors : sum local = 3.42521516445e+96, global = 6.51568390001e+91, cumulative = 6.51568390001e+91
GAMG: Solving for p, Initial residual = 5.43773101144e-05, Final residual = 2.2335068526e+28, No Iterations 1000
[192] #0 Foam::error:rintStack(Foam::Ostream&)--------------------------------------------------------------------------
An MPI process has executed an operation involving a call to the
"fork()" system call to create a child process. Open MPI is currently
operating in a condition that could result in memory corruption or
other system errors; your MPI job may hang, crash, or produce silent
data corruption. The use of fork() (or system() or other calls that
create child processes) is strongly discouraged.

The process that invoked fork was:
Local host: aero9134 (PID 12855)
MPI_COMM_WORLD rank: 192

If you are *absolutely sure* that your application will successfully
and correctly survive a call to fork(), you may disable this warning
by setting the mpi_warn_on_fork MCA parameter to 0.
--------------------------------------------------------------------------
addr2line failed
[192] #1 Foam::sigFpe::sigFpeHandler(int) addr2line failed
[192] #2 Uninterpreted: /lib64/libc.so.6 addr2line failed
[192] #3 Foam::GAMGSolver::scalingFactor(Foam::Field<double >&, Foam::Field<double> const&, Foam::Field<double> const&, Foam::Field<double> const&) const addr2line failed
[192] #4 Foam::GAMGSolver::Vcycle(Foam::PtrList<Foam::lduMa trix::smoother> const&, Foam::Field<double>&, Foam::Field<double> const&, Foam::Field<double>&, Foam::Field<double>&, Foam::Field<double>&, Foam::PtrList<Foam::Field<double> >&, Foam::PtrList<Foam::Field<double> >&, unsigned char) const addr2line failed
[192] #5 Foam::GAMGSolver::solve(Foam::Field<double>&, Foam::Field<double> const&, unsigned char) const addr2line failed
[192] #6 Foam::fvMatrix<double>::solve(Foam::dictionary const&) addr2line failed
[192] #7 Uninterpreted: pisoFoam
[192] #8 __libc_start_main addr2line failed
[192] #9 Foam::regIOobject::writeObject(Foam::IOstream::str eamFormat, Foam::IOstream::versionNumber, Foam::IOstream::compressionType) const
[134:12855] *** Process received signal ***
[134:12855] Signal: Floating point exception (8)
[134:12855] Signal code: (-6)
[134:12855] Failing at address: 0xc6af00003237
[134:12855] [ 0] /lib64/libc.so.6 [0x2b5365441300]
[134:12855] [ 1] /lib64/libc.so.6(gsignal+0x35) [0x2b5365441295]
[134:12855] [ 2] /lib64/libc.so.6 [0x2b5365441300]
2.1.2/lib/linux64GccDPOpt/libFOAM.so(_ZNK4Foam10GAMGSolver13scalingFactorERN S_5FieldIdEERKS2_S5_S5_+0x12b) [0x2b536459c43b]
(_ZNK4Foam10GAMGSolver6VcycleERKNS_7PtrListINS_9ld uMatrix8smootherEEERNS_5FieldIdEERKS8_S9_S9_S9_RNS 1_IS8_EESD_h+0x137f) [0x2b536459f32f]
(_ZNK4Foam10GAMGSolver5solveERNS_5FieldIdEERKS2_h+ 0x4bf) [0x2b536459ffaf]
2.1.2/lib/linux64GccDPOpt/libfiniteVolume.so(_ZN4Foam8fvMatrixIdE5solveERKNS _10dictionaryE+0x140) [0x2b536351b450]
[134:12855] [ 7] oodles [0x4215ef]
[134:12855] [ 8] /lib64/libc.so.6(__libc_start_main+0xf4) [0x2b536542e9c4]
[134:12855] [ 9] oodles(_ZNK4Foam11regIOobject11writeObjectENS_8IOs tream12streamFormatENS1_13versionNumberENS1_15comp ressionTypeE+0xd1) [0x41cd29]
[134:12855] *** End of error message ***
--------------------------------------------------------------------------

thank u in advance

Mizo

Hi Mizo, may I ask you if you're using a polyhedral or a trimmer mesh from star? My transient Piso-simulations always chrash with a trimmer-mesh. After looking in the comments of the source code of ccm226ToFoam I came to the conclusion, that only Polyhedral meshes are supported. Am I right, pls someone correct me if not ?

Best regards,
Za-ck
Za-ck is offline   Reply With Quote

Old   August 6, 2013, 03:00
Default
  #14
Member
 
Mizo
Join Date: Jan 2013
Posts: 34
Rep Power: 13
Ingenieur is on a distinguished road
Hi Za-Ck

thank you for your reply, I will tell you the problem, which I had:
The problem was that I specified the first layer thickniss of the boundary layer with too small value
and I can tell you now (very sure) that the solution will be absolutly not converged if you have very small cells (in the region of the boundary layer )

Mizo

Last edited by Ingenieur; August 26, 2013 at 05:16.
Ingenieur is offline   Reply With Quote

Old   August 17, 2013, 08:06
Default
  #15
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings to all!

@Mizo:
Quote:
Originally Posted by Ingenieur View Post
Could you please tell me how can I convert the Whole FOAM Case (with MRF and porourse Media) to fluent, I used the utility (foamMeshToFluent) but the MRF & porouse were not between the BC of the new Fluent mesh
When converting between mesh types, it's very likely to not be able to convert every feature of the original mesh. In this case, foamMeshToFluent was not designed to export "cellZones" that OpenFOAM uses, which is why they aren't available in the resulting file.

There was one vague possible hack, where the field "cellToRegion" could be converted to a field as fluent data (foamDataToFluent needs a dictionary: https://github.com/OpenFOAM/OpenFOAM...taToFluentDict ), but the problem would then be how you would convert this field into the porous zone in the target CFD application.

Best regards,
Bruno
Ingenieur likes this.
__________________
wyldckat is offline   Reply With Quote

Old   August 19, 2013, 08:42
Default
  #16
Member
 
Mizo
Join Date: Jan 2013
Posts: 34
Rep Power: 13
Ingenieur is on a distinguished road
many thanks Bruno,

you are the Master of CFD
I will try and tell you the results

best regards

Mizo
Ingenieur is offline   Reply With Quote

Old   January 29, 2014, 04:35
Default
  #17
New Member
 
GabrielPS
Join Date: Jan 2014
Posts: 1
Rep Power: 0
abiel is on a distinguished road
Hi All!

I am a new member in this forum. Nice to read all the post which is very helpful.

I have a problem, now I am generating a mesh from a stl file, but I do not know how to put the boundary condition. I tried to use Star CCM+ and named some boundary condition there, but when I tried to convert it to OpenFoaam using ccm26toFoam, it only detected one boundary, which is the wall, while the other patches were not detected. Do you have any idea to solve this? or can you suggest me on how to put the boundary condition from a stl data? Thanks and have a nice day.

Best regards,
Abiel
abiel is offline   Reply With Quote

Old   February 2, 2014, 09:34
Default
  #18
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings Abiel and welcome to the forum!

There are two possible answers to your question:
  1. Check the file "constant/polyMesh/boundary" to confirm if there is really only one boundary condition. I say this because you might be confusing the boundary conditions on the fields, versus the ones on the mesh. In other words, ccm26ToFoam only generates the BCs for the mesh, not for the fields.
  2. The other possibility is that you did not select the patches in the export list, while exporting in Star-CCM+ to ".ccm".
Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
how to set periodic boundary conditions Ganesh FLUENT 15 November 18, 2020 06:09
[Commercial meshers] Thin Walls Conversion from Fluent Mesh Isaac OpenFOAM Meshing & Mesh Conversion 1 March 4, 2016 12:08
[mesh manipulation] Importing Multiple Meshes thomasnwalshiii OpenFOAM Meshing & Mesh Conversion 18 December 19, 2015 18:57
Problems w 2d mesh conversion for Fluent Gimlas FLUENT 1 May 9, 2013 04:18
fluent add additional zones for the mesh file SSL FLUENT 2 January 26, 2008 11:55


All times are GMT -4. The time now is 19:04.