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

[blockMesh] Perform Circular Pattern Array to a blockMeshDict computational domain

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By efirvida

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 1, 2015, 16:40
Default Perform Circular Pattern Array to a blockMeshDict computational domain
  #1
Member
 
Eduardo Firvida
Join Date: Dec 2010
Posts: 53
Rep Power: 15
efirvida is on a distinguished road
Hi I have a problem as shown in the next figure. But I didn't want to use the periodic faces, Y want to make a circular array pattern with the domain to generate a cylindrical computational domain. Is there any way to do it?

efirvida is offline   Reply With Quote

Old   January 4, 2016, 12:03
Default
  #2
Member
 
Eduardo Firvida
Join Date: Dec 2010
Posts: 53
Rep Power: 15
efirvida is on a distinguished road
I finaly did it with this script

Code:
#!/bin/sh
. $WM_PROJECT_DIR/bin/tools/RunFunctions
orig=$PWD
n=2
declare -A d[$n]
d[0]="(-0.5 0.8660254 0)"
d[1]="(-0.5 -0.8660254 0)"
cd $orig
rm log.*
runApplication blockMesh
for (( i=0; i < $n; i++ ))
do
    temp=$(mktemp)-$i
    mkdir -p $temp
    cp -a $orig/* $temp
    cd $temp
    runApplication blockMesh
    runApplication transformPoints -rotate "( (1 0 0) ${d[$i]} )"
    runApplication      mergeMeshes -overwrite $orig $temp
    rm -rf $temp
done
DaveD! likes this.

Last edited by efirvida; January 11, 2016 at 12:31.
efirvida is offline   Reply With Quote

Old   September 2, 2022, 04:23
Default
  #3
New Member
 
mehulsasvadiya1996@gmail.'s Avatar
 
Mehulbhai Sasvadiya
Join Date: Jan 2021
Location: Germany
Posts: 25
Rep Power: 5
mehulsasvadiya1996@gmail. is on a distinguished road
Quote:
Originally Posted by efirvida View Post
Hi I have a problem as shown in the next figure. But I didn't want to use the periodic faces, Y want to make a circular array pattern with the domain to generate a cylindrical computational domain. Is there any way to do it?

Hi!
Have you generated blockMesh by yourself or any other software?
mehulsasvadiya1996@gmail. 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
Domain size influence in unbounded domains model Reoyo Main CFD Forum 10 May 4, 2018 08:30
Pie Slice Cut Out in circular computational domain MichaelBrandhorn STAR-CCM+ 0 March 24, 2017 10:29
Out File does not show Imbalance in % Mmaragann CFX 5 January 20, 2017 10:20
[DesignModeler] scripting a circular pattern efirvida ANSYS Meshing & Geometry 7 July 26, 2015 18:40
Moving computational domain David.C OpenFOAM 0 July 21, 2015 08:13


All times are GMT -4. The time now is 01:20.