|
[Sponsors] |
[blockMesh] Reading Vertices from another file |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
November 17, 2014, 15:48 |
Reading Vertices from another file
|
#1 |
Member
Join Date: Nov 2014
Posts: 88
Rep Power: 11 |
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 ) ); thank you. |
|
December 15, 2014, 13:24 |
|
#2 |
Senior Member
Join Date: Mar 2010
Location: Germany
Posts: 154
Rep Power: 16 |
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 |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
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 |