Read Velocity field. Removing debug messages.
This commit is contained in:
parent
97437f0663
commit
cb175981ce
1 changed files with 4 additions and 6 deletions
|
|
@ -36,8 +36,6 @@ class PythonDnsDataReader(VTKPythonAlgorithmBase):
|
|||
executive = self.GetExecutive()
|
||||
outInfo = outInfoVec.GetInformationObject(0)
|
||||
|
||||
print("RequestInformation: ", self._filename)
|
||||
|
||||
filename = self._filename
|
||||
t, nx, ny, nz, U, V, W, Y0, Y1 = self._read_data(filename, True)
|
||||
|
||||
|
|
@ -57,8 +55,6 @@ class PythonDnsDataReader(VTKPythonAlgorithmBase):
|
|||
# Note, exceptions are totally fine!
|
||||
raise RuntimeError("No filename specified")
|
||||
|
||||
print(self._filename)
|
||||
|
||||
filename = self._filename
|
||||
t, nx, ny, nz, U, V, W, Y0, Y1 = self._read_data(filename)
|
||||
|
||||
|
|
@ -71,8 +67,10 @@ class PythonDnsDataReader(VTKPythonAlgorithmBase):
|
|||
assert y1.shape[0] == dims[0]*dims[1]*dims[2], "dimension mismatch"
|
||||
|
||||
output.SetExtent(0, dims[0]-1, 0, dims[1]-1, 0, dims[2]-1)
|
||||
output.PointData.append(y1, "scalars")
|
||||
output.PointData.SetActiveScalars("scalars")
|
||||
output.PointData.append(y1, "yr")
|
||||
output.PointData.append(np.vstack((u,v,w)).T, "U")
|
||||
|
||||
output.PointData.SetActiveScalars("yr")
|
||||
|
||||
return 1
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue