PyFoam.Applications.DisplayBlockMeshQt module

New implementation of DisplayBlockMesh using PyQT4

class PyFoam.Applications.DisplayBlockMeshQt.DisplayBlockMesh[source]

Bases: PyFoam.Applications.PyFoamApplicationQt4.PyFoamApplicationQt4, PyFoam.Applications.CommonTemplateFormat.CommonTemplateFormat

addOptions()[source]
setupGUI()[source]
class PyFoam.Applications.DisplayBlockMeshQt.DisplayBlockMeshDialog(fName, valuesFile=None, opts=None)[source]

Bases: PyQt4.QtGui.QMainWindow

AddBlockToDict()[source]

Adds block to dict, using pyFoam functions

AddBlockToText()[source]

Inserts block into opened dict

AddPatchToText()[source]

Inserts patch into opened dict

PickEvent(obj, evt)[source]

Callback for picking event

addBlock(index)[source]
addInputToPolyData(appendPoly, data)[source]

Helper version needed because of changed API in VTK6

addLine(index1, index2)[source]
addPoint(coord, factor=1)[source]
addProps()[source]
addTmpBlockingLine(index1, index2)[source]

Add a colored line to show blocking progress

addUndefined(i)[source]
addVertex(index)[source]
axisLabelScaleChanged(scale)[source]
axisTubeScaleChanged(scale)[source]
blockMesh()[source]
blockMeshWasModified()[source]
checkMesh()[source]
closeEvent(event)[source]
colorBlock(value)[source]
colorPatch(value)[source]
defineBlock()[source]

callback for create block button

definePatch()[source]

Callback for create patch button

executeUtility(util)[source]
executionEnded()[source]
getDivString()[source]

block division string

getEndHexString()[source]

last part of hex string

getPatchString()[source]
getTotalHexString()[source]

total block hex string

getTotalPatchString()[source]

total patch string

insertBlock()[source]

inserts new block

insertPatch()[source]

inserts new patch

makeArc(data)[source]
makeDirection(index1, index2, label)[source]
makeFace(lst)[source]
makeSpline(lst)[source]
numberScaleChanged(scale)[source]
pickBlockVertice()[source]

pick a sphere and add point to block

pickPatchVertice()[source]

pick a sphere and add point to vertice

pickVertice()[source]

pick a vertice, returns Null if invalid

pointScaleChanged(scale)[source]
readFile(resetText=True)[source]
reread(resetText=True)[source]
resetBlocking()[source]

rest block

resetPatch()[source]

rest patch

reverseNormal()[source]
saveBlockMesh()[source]
setAxes()[source]
setStatus(message='Ready')[source]
setupBlockingGui()[source]

sets up the GUI to add the Blocking functions.

showTmpBlock()[source]

Add a colored block

showTmpPatch()[source]

Add a colored patch

startBlocking()[source]

start blocking

startPatch()[source]

start define patch

utilityOutputAppend(line)[source]
class PyFoam.Applications.DisplayBlockMeshQt.ReportToThreadRunner(argv, thread)[source]

Bases: PyFoam.Execution.BasicRunner.BasicRunner

lineHandle(line)[source]
class PyFoam.Applications.DisplayBlockMeshQt.UtilityThread(argv, parent)[source]

Bases: PyQt4.QtCore.QThread

append(line)[source]
run()[source]
PyFoam.Applications.DisplayBlockMeshQt.doImports()[source]