|
[Sponsors] |
[General] issues using clip in python driven analysis |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 17, 2017, 12:07 |
issues using clip in python driven analysis
|
#1 |
Member
robo
Join Date: May 2013
Posts: 47
Rep Power: 12 |
Hey all, hopefully this is a simple question. I have a python script that includes a clip in my pipeline, using the code
Code:
c1 = pv.Clip(Input=fieldReader) c1.ClipType = 'Box' c1.InsideOut = 1 c1.ClipType.Scale = [xs,ys,zs] pv.UpdatePipeline() Thanks! |
|
July 18, 2017, 02:19 |
|
#2 | |
Member
Join Date: Apr 2015
Posts: 37
Rep Power: 11 |
Quote:
Maybe you can try to add the "bounds" and "position" definition of the clip before the "scale" command to control the limits of the clip? Code:
c1 = pv.Clip(Input=fieldReader) c1.ClipType = 'Box' c1.InsideOut = 1 c1.ClipType.Bounds = [xb1,yb1,zb1,xb2,yb2,zb2] c1.ClipType.Position = [xp,yp,zp] c1.ClipType.Scale = [xs,ys,zs] pv.UpdatePipeline() Cheers |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Pressure driven flow issues at the inlet of a pipe | CRI_CFD | OpenFOAM Running, Solving & CFD | 1 | May 25, 2016 13:11 |
Multigrid Stability Issues | ThomasHermann | SU2 | 1 | November 5, 2014 16:18 |
Lid driven flow in shallow rectangular domain issues, MATLAB | new_at_this | Main CFD Forum | 0 | November 10, 2011 20:41 |
Short Course: Computational Thermal Analysis | Dean S. Schrage | Main CFD Forum | 11 | September 27, 2000 17:46 |
Is CFD Science or Art ? | John C. Chien | Main CFD Forum | 36 | October 5, 1999 12:58 |