CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Mesh Generation & Pre-Processing Software > Pointwise & Gridgen

Pointwise: How to set "internal" boundary condition with GlyphScript

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 22, 2019, 12:49
Unhappy Pointwise: How to set "internal" boundary condition with GlyphScript
  #1
New Member
 
Andrea Battiston
Join Date: Feb 2019
Posts: 2
Rep Power: 0
AndreWolf89 is on a distinguished road
Good morning,
I'm having problems in defining a fan boundary condition between two blocks. While, via GUI, the problem can easily be solved by clicking on the "select cononections" tab, I'm struggling to find a solution using Glyph.


I should create an automated mesh for an optimization loop, therefore I've got no other alternatives than scripting this out.


Any guess?


Andrea
AndreWolf89 is offline   Reply With Quote

Old   November 22, 2019, 20:19
Default
  #2
Senior Member
 
David Garlisch
Join Date: Jan 2013
Location: Fidelity Pointwise, Cadence Design Systems (Fort Worth, Texas Office)
Posts: 307
Rep Power: 14
dgarlisch is on a distinguished road
Right-click in message window and turn on journal messages.
Then you will see how GUI is doing it.

When applying a BC to a blk connection, you must specify which "side" of the domain. This is done with a 3-D {blk dom} register or a 2-D {dom con} register.

See Glyph Docs for pw::BoundaryCondition

Code:
get blk1 [pw::GridEntity getByName "blk-1"]
get blk2 [pw::GridEntity getByName "blk-2"]
get cnxnDom [pw::GridEntity getByName "dom-1"]

set bcIn [pw::BoundaryCondition getByName "in"]
set registerBlk1Cnxn[list $blk1 $cnxnDom Same]
$bcIn apply[list $registerBlk1Cnxn]

set bcOut [pw::BoundaryCondition getByName "out"]
set registerBlk2Cnxn[list $blk2 $cnxnDom Opposite]
$bcOut apply[list $registerBlk2Cnxn]
good luck
dgarlisch is offline   Reply With Quote

Old   November 27, 2019, 05:18
Default
  #3
New Member
 
Andrea Battiston
Join Date: Feb 2019
Posts: 2
Rep Power: 0
AndreWolf89 is on a distinguished road
Thank you! I was not defining the sides. You saved me!
AndreWolf89 is offline   Reply With Quote

Old   November 27, 2019, 12:07
Default
  #4
Senior Member
 
David Garlisch
Join Date: Jan 2013
Location: Fidelity Pointwise, Cadence Design Systems (Fort Worth, Texas Office)
Posts: 307
Rep Power: 14
dgarlisch is on a distinguished road
No Problem.

Also, to clarify. The third, Same/Opposite register value is only required IF you have a self-connected block (e.g. an O-topology block).

The yellow, wake domain in this video has the same block on both sides and would require Same/Opposite to properly define the register.

The Same/Opposite refers to the orientation of the domain (Edit, Orient...). Same == "Same side as the normal".

Updated example:

Code:
get blk1 [pw::GridEntity getByName "blk-1"]
get blk2 [pw::GridEntity getByName "blk-2"]
get cnxnDom [pw::GridEntity getByName "dom-1"]

set bcIn [pw::BoundaryCondition getByName "in"]
set registerBlk1Cnxn[list $blk1 $cnxnDom] ;# Same/Opposite optional
$bcIn apply[list $registerBlk1Cnxn]

set bcOut [pw::BoundaryCondition getByName "out"]
set registerBlk2Cnxn[list $blk2 $cnxnDom] ;# Same/Opposite optional
$bcOut apply[list $registerBlk2Cnxn]
dgarlisch is offline   Reply With Quote

Reply

Tags
boundaryconditions, glyph, pointwise


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
Cyclic boundary condition in foam-extend 4.0 rellumeister OpenFOAM Pre-Processing 2 March 3, 2020 09:03
Problem in setting Boundary Condition Madhatter92 CFX 12 January 12, 2016 05:39
How to set the Heat Flux boundary condition at Outlet creddy_trddc CFX 3 September 21, 2011 08:44
External Radiation Boundary Condition (Two sided wall), Grid Interface CFD XUE FLUENT 0 July 8, 2010 07:49
Convective Heat Transfer - Heat Exchanger Mark CFX 6 November 15, 2004 16:55


All times are GMT -4. The time now is 14:32.