paraview

Cannot connect to X server using docker on OS X - Part II

与世无争的帅哥 提交于 2019-12-08 03:51:02
问题 I'm having the same difficulty as the one expressed here: Cannot connect to X server using docker on OSX I'm very confused about the recommended instructions in the above link (I'm a novice on docker), and I'm hoping to get clarification about the following: 1) Do we "touch foo.foam" in a regular OS X terminal or do we touch it in the docker terminal; in my case, following "docker run -ti openfoamplus/of_v30plus_rhel66 /bin/bash" 2) You suggest running paraview (mine is the most recent) just

How to write ASCII and BINARY data to the same file at the same time

荒凉一梦 提交于 2019-12-07 16:15:14
问题 I work with a VTK data type for my outputs. Since my data is becoming larger and larger, it's taking considerable time to write it in ASCII and that's what I have been doing so far. I need to change that into binary format but the problem is the file has some headers (see http://www.vtk.org/VTK/img/file-formats.pdf) that need to be written in ASCII even for binary files. Now I don't have enough experience with binary formats and my first try was to open two streams via ofstream asciiWriter

Cannot connect to X server using docker on OS X - Part II

你。 提交于 2019-12-06 14:51:08
I'm having the same difficulty as the one expressed here: Cannot connect to X server using docker on OSX I'm very confused about the recommended instructions in the above link (I'm a novice on docker), and I'm hoping to get clarification about the following: 1) Do we "touch foo.foam" in a regular OS X terminal or do we touch it in the docker terminal; in my case, following "docker run -ti openfoamplus/of_v30plus_rhel66 /bin/bash" 2) You suggest running paraview (mine is the most recent) just like any other Mac app. So, basically, to double-click on paraview in the Applications folder? But when

How to write ASCII and BINARY data to the same file at the same time

夙愿已清 提交于 2019-12-06 02:56:30
I work with a VTK data type for my outputs. Since my data is becoming larger and larger, it's taking considerable time to write it in ASCII and that's what I have been doing so far. I need to change that into binary format but the problem is the file has some headers (see http://www.vtk.org/VTK/img/file-formats.pdf ) that need to be written in ASCII even for binary files. Now I don't have enough experience with binary formats and my first try was to open two streams via ofstream asciiWriter(file_name.c_str()); ofstream binWriter(file_name.c_str(), ios::app | ios::binary); problem is the output

create multiple polylines given a set of points using vtk

时间秒杀一切 提交于 2019-12-04 16:59:23
I need to display the trajectories in space of 50 particles using vtk and paraview. Currently my data is pos(x,y,t,n) where n is the label of the n-th particle. I have saved all my data in a vtk file which is organized as: # vtk DataFile Version 3.0 VTK from Matlab BINARY DATASET POLYDATA POINTS 199250 double [PROPERLY ORGANIZED BINARY COORDINATES OF THE 199250 POINTS] The above file can be imported correctly into ParaView, and at a first glance I can apply the following programmagle filter pdi = self.GetPolyDataInput() pdo = self.GetPolyDataOutput() newPoints = vtk.vtkPoints() numPoints = pdi

Composing VTK file from multiple MPI outputs

陌路散爱 提交于 2019-12-04 13:12:03
问题 For a Lattice Boltzmann simulation of a lid-driven cavity (CFD) I'm decomposing my cubic domain into (also cubic) 8 subdomains, which are computed independently by 8 ranks. Each MPI rank is producing a VTK file for each timestep and since I'm using ParaView I want to visualize the whole thing as one cube. To be more specific about what I am trying to achieve: I have a cube with length 8 (number of elements for each direction) => 8x8x8 = 512 elements. Each dimension is distributed to 2 ranks,

Paraview “possible mismatch of datasize with declaration” error

女生的网名这么多〃 提交于 2019-12-04 12:40:46
Paraview (v4.1.0 64-bit, OSX 10.9.2) is giving me the following error: Generic Warning: In /Users/kitware/Dashboards/MyTests/NightlyMaster/ParaViewSuperbuild-Release/paraview/src/paraview/VTK/IO/Legacy/vtkDataReader.cxx, line 1388 Error reading ascii data. Possible mismatch of datasize with declaration. I'm not sure why. I've double-checked that fields are all of the expected lengths, and none of the values are NaN, inf, or otherwise extremely large. The issue starts with the output from timestep 16 (0-15 produces no error). Graphically, steps 0-15 produce plots of my data as expected; step 16

How to connect points in paraview?

二次信任 提交于 2019-12-02 07:11:52
问题 I have a question. I'm new to paraview and I'm learning how to use it. I need to make a graph from data that are stored in .csv file (2 columns). I have them loaded and converted using TabletToPoints filter. I want ask if it's possible to connect these points by point ID so they will create a line (previous point with next point and so on) I found a solution: pdi = self.GetPolyDataInput() pdo = self.GetPolyDataOutput() numPoints = pdi.GetNumberOfPoints() pdo.Allocate() for i in range(0,

Cannot connect to X server using docker on OSX

冷暖自知 提交于 2019-12-02 05:10:35
问题 I am trying to install openFoam on Mac OS X 10.10.5 (http://www.openfoam.com/download/install-binary.php) by using Docker-toolbox. I can do without problems all the suggested steps, but then, when I try to run the example included in the installation guide, I cannot open paraFoam, since it returns the following error: paraview: cannot connect to X server I have also installed XQuartz but it doesn't seem to help much! 回答1: Why don't you get the latest paraview from Kitware. It has a native

How to connect points in paraview?

て烟熏妆下的殇ゞ 提交于 2019-12-02 01:20:23
I have a question. I'm new to paraview and I'm learning how to use it. I need to make a graph from data that are stored in .csv file (2 columns). I have them loaded and converted using TabletToPoints filter. I want ask if it's possible to connect these points by point ID so they will create a line (previous point with next point and so on) I found a solution: pdi = self.GetPolyDataInput() pdo = self.GetPolyDataOutput() numPoints = pdi.GetNumberOfPoints() pdo.Allocate() for i in range(0, numPoints-1): points = [i, i+1] # VTK_LINE is 3 pdo.InsertNextCell(3, 2, points) Not directly. You can write