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

[blockMesh] Reading Vertices from another file

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 17, 2014, 15:48
Default Reading Vertices from another file
  #1
Member
 
Join Date: Nov 2014
Posts: 88
Rep Power: 11
hwsv07 is on a distinguished road
is it possible to read the vertices in BlockMeshDict from another file?

I saw a blockMeshDict that the vertices were referenced in this manner

Code:
vertices
(
    ( $x0 $y0 $z0 )
    ( $x1 $y0 $z0 )
    ( $x1 $y1 $z0 )
    ( $x0 $y1 $z0 )
    ( $x0 $y0 $z1 )
    ( $x1 $y0 $z1 )
    ( $x1 $y1 $z1 )
    ( $x0 $y1 $z1 )
    ( $x2 $y0 $z0 )
    ( $x3 $y0 $z0 )
    ( $x3 $y1 $z0 )
    ( $x2 $y1 $z0 )
    ( $x2 $y0 $z1 )
    ( $x3 $y0 $z1 )
    ( $x3 $y1 $z1 )
    ( $x2 $y1 $z1 )    
);
how does it work? is there anywhere I can read on how to do this?

thank you.
hwsv07 is offline   Reply With Quote

Old   December 15, 2014, 13:24
Default
  #2
Senior Member
 
Join Date: Mar 2010
Location: Germany
Posts: 154
Rep Power: 16
cutter is on a distinguished road
Hi,

your sample snippet uses variables for parametrization of the blockMeshDict file, have a look at
https://sites.google.com/site/snappy.../blockmeshdict for further information.

As far as I know it's not possible to read vertices from other files (beside including another dict and using the variables defined in there). You may use any scripting or programming language to create a blockMeshDict though. This script/program could read the vertices, process them and write an appropriate blockMeshDict. Have a look at http://www.cfd-online.com/Forums/ope...ctions-m4.html for a sample using the Python scripting language (needs to be extended to write the whole blockMeshDict).

Have fun!

Cutter
cutter 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
Custom Thermophysical Properties wsmith02 OpenFOAM 4 June 1, 2023 15: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 19:13
[swak4Foam] Problem installing swak_2.x for OpenFoam-2.4.0 towanda OpenFOAM Community Contributions 6 September 5, 2015 22:03
Problem compiling a custom Lagrangian library brbbhatti OpenFOAM Programming & Development 2 July 7, 2014 12:32
DxFoam reader update hjasak OpenFOAM Post-Processing 69 April 24, 2008 02:24


All times are GMT -4. The time now is 17:24.