|
[Sponsors] |
Pointwise: How to set "internal" boundary condition with GlyphScript |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
November 22, 2019, 12:49 |
Pointwise: How to set "internal" boundary condition with GlyphScript
|
#1 |
New Member
Andrea Battiston
Join Date: Feb 2019
Posts: 2
Rep Power: 0 |
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 |
|
November 22, 2019, 20:19 |
|
#2 |
Senior Member
David Garlisch
Join Date: Jan 2013
Location: Fidelity Pointwise, Cadence Design Systems (Fort Worth, Texas Office)
Posts: 307
Rep Power: 14 |
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] |
|
November 27, 2019, 05:18 |
|
#3 |
New Member
Andrea Battiston
Join Date: Feb 2019
Posts: 2
Rep Power: 0 |
Thank you! I was not defining the sides. You saved me!
|
|
November 27, 2019, 12:07 |
|
#4 |
Senior Member
David Garlisch
Join Date: Jan 2013
Location: Fidelity Pointwise, Cadence Design Systems (Fort Worth, Texas Office)
Posts: 307
Rep Power: 14 |
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] |
|
Tags |
boundaryconditions, glyph, pointwise |
|
|
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 |