CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums

Blog Entries

Register Blogs Community New Posts Updated Threads Search

Old

salomeToOpenFOAM mesh conversion

Posted March 14, 2014 at 06:36 by skeptik (CFD notes)

I met one big problem when i have converted SALOME mesh by UNV format and ideasToFoam utility.

It was not usual mesh, it contained pyramids. See fig.

Name:  mesh_scr.jpg
Views: 1720
Size:  97.1 KB

I spent a lot time to achieve the same result like i can using ICEM. Only when i've found salomeToOpenFOAM script i successfully converted my mesh.

So i recommend it. The script is very helpful.

https://github.com/nicolasedh/salomeToOpenFOAM
Member
Posted in Uncategorized
Views 2279 Comments 0 skeptik is offline Edit Tags
Old

Useful LES tools in Fluent - Part 4

Posted March 7, 2014 at 02:59 by sbaffini (NuTBox)
Updated December 21, 2016 at 09:08 by sbaffini

This is a routine to perform a remap of fields from an interior surface to an inlet surface during the computation. In practice this can be used to produce an LES inflow belonging to the class of the so called "precursor methods". Still, this is actually done in parallel with the main computation and not in advance.

The attached pdf file contains an explanatory image of the method while the .c routine should be sufficiently commented to be readily usable by anyone who actually...
Attached Files
File Type: c remap_par.c (14.4 KB, 778 views)
File Type: pdf remap.pdf (24.2 KB, 908 views)
sbaffini's Avatar
Senior Member
Posted in LES
Views 2838 Comments 4 sbaffini is offline Edit Tags
Old

Enosh, a structured grid generator (V)

Posted March 5, 2014 at 17:14 by lakeat (Daniel Wei's CFD Blog: (http://lakeat.co.nf/))

I have made significant improvement on the mesh export. The manual building up of OpenFOAM mesh now turns up really fast. I got a feeling that it could possibly beat even OpenFOAM's native blockMesh generator. In my test of a 3,200,000 mesh (for flow around a square cylinder). The building process took 90.51s in total. Here are more details:

...... [1] Done assembling the points. ( 7.09000s)
...... [2] Done assembling all cells & intnl cntrs. ( 40.62000s)
...
lakeat's Avatar
Senior Member
Posted in Uncategorized
Views 2502 Comments 0 lakeat is offline Edit Tags
Old

Enosh, a structured grid generator (IV)

Posted March 4, 2014 at 11:20 by lakeat (Daniel Wei's CFD Blog: (http://lakeat.co.nf/))

Brief updates: I have succeeded optimizing some pieces of the code, from O(n^2) to O(n), but I still have another key module having the O(nlogn) complexity. It is unacceptable. I need to get rid of it.
lakeat's Avatar
Senior Member
Posted in Uncategorized
Views 1893 Comments 0 lakeat is offline Edit Tags
Old

Enosh, a structured grid generator (III)

Posted February 28, 2014 at 15:21 by lakeat (Daniel Wei's CFD Blog: (http://lakeat.co.nf/))
Updated March 3, 2014 at 13:47 by lakeat (Clarification)

Updates:

Finally, I got the boundary file output working. Now it is able to export to the OpenFOAM mesh format. But I still need to do some optimization (hopefully to make it back to log-complexity with hash tables, thanks to c++11). Currently it takes too much time to build an OpenFOAM mesh manually.

Also I have tested the code on a clean ubuntu 64 environment with virtualbox, it seems to me anyone who wants to use it needs vtk and qt installed. Using synaptic package...
Attached Images
File Type: jpg Screenshot from 2014-02-28 15:17:40.jpg (63.1 KB, 3044 views)
Attached Files
lakeat's Avatar
Senior Member
Posted in Uncategorized
Views 2346 Comments 1 lakeat is offline Edit Tags

All times are GMT -4. The time now is 23:53.