The problem now is that I do not know which technology I should use to do this. I guess the two options are the ParaView and VTK clients/servers. I have found some examples on the internet demonstrating remote rendering, but the more I explore them, the more questions they raise. For example this: This example provides two different servers, a ParaView-based and a VTKWeb-based. This example also uses the ParaViewWeb JavaScript client.
Yes. vtk.js in some way aims to replace the ParaViewWeb client library. The ParaViewWeb client library offer more via some React based widget but in term of connectivity to a vtk/pv Web backend, paraviewweb is lagging behind vtk.js. Basically vtk.js offer a nicer implementation, but both will still work as nothing really change over the wire.
You can already build we applications based on Slicer, the same way as ParaView. The ParaView team is ahead in that they implemented a couple of complete examples and they also implemented a few simple custom web widgets to modify some properties.
I have managed to read those data to Paraview (using C++ examples on vtk webside) with the use of polydata object nd Delaunay2D triangulation. I have checked my code also for some more complicated geometries and I have noticed that with Delaunay2D you have to control Alpha parameter to avoid incorrect connection of the points. I have also checked the code for the case of air flow in 2D channel and it gave more or less OK results in Paraview, however in the boundary layer when I have a lot of thin and long elements in Fluent mesh, the reproduction with Delaunay2D in Paraview is I would say not bad but I think that with unstructured mesh I could have a better result.
Getting the camera on this one can be right since the slices are invisible from certain angles.>>> from paraview.simple import *>>> reader = ExodusIIReader(FileName=".../Data/can.ex2")>>> sliceFilter = Slice(reader)>>> Show(sliceFilter)>>> Render()>>> camera = GetActiveCamera()>>> camera.Elevation(30)>>> camera.SetPosition(-51.3152,4.987,-9.64218)>>> Render() >>> sliceFilter.SliceType.Normal[1.0, 0.0, 0.0]
>>> from paraview.simple import *>>> reader = ExodusIIReader(FileName=".../Data/disk_out_ref.ex2")>>> Show(reader)>>> dp1 = GetDisplayProperties(reader)>>> dp1.Representation = 'Wireframe'>>> camera = GetActiveCamera()>>> camera.Elevation(-60)>>> thresholdFilter = Threshold(reader)>>> thresholdFilter.Scalars['POINTS', 'GlobalNodeId']>>> thresholdFilter.Scalars = 'Temp'>>> Show(thresholdFilter)>>> thresholdFilter.ThresholdRange[0.0, 0.0]>>> thresholdFilter.ThresholdRange = [398.55,913.15]>>> Render() >>> dp2 = GetDisplayProperties(thresholdFilter)>>> thresholdFilter.PointData[:][Array: GlobalNodeId, Array: PedigreeNodeId, Array: Temp, Array: V, Array: Pres, Array: AsH3, Array: GaMe3, Array: CH4, Array: H2]>>> temp = thresholdFilter.PointData[2]>>> temp.GetRange()(400.46258544921875, 846.694091796875)>>> dp2.LookupTable = MakeBlueToRedLT(400.4625,846.6909)>>> dp2.ColorAttributeType = 'POINT_DATA'>>> dp2.ColorArrayName = 'Temp'>>> Render()
>>> from paraview.simple import *>>> reader = ExodusIIReader(FileName = ".../Data/disk_out_ref.ex2")>>> contourFilter = Contour(reader)>>> contourFilter.ContourBy = 'Temp'>>> contourFilter.Isosurfaces[]>>> contourFilter.Isosurfaces = [400]>>> camera = GetActiveCamera()>>> camera.Elevation(-90)
>>> from paraview.simple import *>>> reader = ExodusIIReader(FileName=".../Data/disk_out_ref.ex2")>>> streamTracer = StreamTracer(reader)>>> streamTracer.Vectors = 'V'>>> streamTracer.SeedType.NumberOfPoints = 100>>> streamTracer.SeedType.Radius = 1.15>>> streamTracer.SetPropertyWithName('Max.Propagation',20.1599)>>> Show(streamTracer)>>> camera = GetActiveCamera()>>> camera.Elevation(-45)>>> camera.Dolly(0.4)>>> dp1 = GetDisplayProperties(streamTracer)>>> streamTracer.PointData[:][Array: Temp, Array: V, Array: Pres, Array: AsH3, Array: GaMe3, Array: CH4, Array: H2, Array: IntegrationTime, Array: Vorticity, Array: Rotation, Array: AngularVelocity, Array: Normals]>>> pres = streamTracer.PointData[2]>>> dp1.LookupTable = MakeBlueToRedLT(pres.GetRange()[0],pres.GetRange()[1])>>> dp1.ColorAttributeType = 'POINT_DATA'>>> dp1.ColorArrayName = 'Pres'
I am trying to develop a workflow for OpenFoam where I create the whole OpenFoam case in Butterfly, and then meshing and running it from linux machine. I am trying the new examples, based on the latest Butterfly in Github. Here is my finding on the outdoor example.
Hi @ngeneva ,
Regarding the three_fin_3d example, how to create 2 meshes for the flow and the heat sink?
For example, if the heat sink is created using the primitives geometry, but it only gives me point cloud instead of mesh, right? Also I saw all the contraints are saved as vtp file in the example, when I open it in paraview, it also shows the point cloud instead of mesh.
Hi @ngeneva ,
Above is the code for postprocessing of limerock case, which create a grid_inferencer for the limerock and the solid part. But after I opened the vti file in paraview, it only gives me a whole square domain.
Basically I wanna conduct inference on the fluid and solid region separately, do the codes above mean the same intention? If so, how to do with this whole bounding box? will it only show the heat sink region by some filter in paraview?
Capture1648932 131 KB
Hi @ngeneva ,
BTW, Do you know how to define the source term in modulus heat transfer example?
If I have a chip that has power of 250w, how to impose it in modulus? I notice the source
term in modulus are of the unit K/m, how to do the conversion to make it correct?
And also the three fin examples are insulated at the wall, what if I want to set up some
film coefficient of h to it to consider the air convection? How should I change the temp_grad_norm at the wall?
This section contains a few examples of DFN generated using dfnWorks. All required input files for these examples are contained in the folder dfnWorks/examples/. The focus of this document is to provide visual confirmation that new users of dfnWorks have the code set up correctly, can carry out the following runs and reproduce the following images. All images are rendered using Paraview, which can be obtained for free at http : //www.paraview.org/. The first two examples are simplest so it is recommended that the user proceed in the order presented here.
All examples are in the examples/ directory. Within each subdirectory are the files required to run the example. The command line input is found in notes.txt. Be sure that you have created /test_output_files prior to running the examples.
Hello, I want to bundle example visualization examples to Paraview. I download ParaViewTestingDataFiles-v5.9.0.tar.gz. I unpack everything to share/paraview-5.9/examples. However, it error looking for disk_out_ref.ex2 in /examples. So I copy...
The Calculator filter allows users to generate new data values for the points or cells of a visualization pipeline. These values are typically the result of computations based on the existing data in the pipeline, which is available to the Calculator filter. In the examples below, we will work with the RectGrid2.vtk data set, which is a rectilinear grid that has both scalar and vector data at each sample point. Let's begin by loading the data and creating an empty Calculator filter:
You will obtain the best performance by running the ParaView client on yourlocal computer and running the server on OLCF resources with the same versionof ParaView. It is highly recommended to check the available ParaView versionsusing module avail paraview on the system you plan to connect ParaView to.Precompiled ParaView binaries for Windows, macOS, and Linux can be downloadedfrom Kitware.
If you plan on using the EGL version of the ParaView module (e.g.,paraview/5.11.0-egl), then you must be connected to the GPUs. On Andes,this is done by using the gpu partition via #SBATCH -p gpu, whileon Summit the -g flag in the jsrun command must be greaterthan zero.
Once you have finished installing ParaView, please try the visualisation examples below to verify that the software is working correctly on your computer. You might find some of the examples useful for solving the tasks in the other assignments ?
To run the following examples, download this zip-file and extract its content. Each example is stored as a *.pvsm file (a ParaView state file) that you can open from ParaView by going to File->Load State and selecting the file. For some of the examples, you have to select Search files under specified directoryunder the dialog Load State Options to load the data files from the correct path.
At the time of writing of this document the IceT source is included inParaView and not VTK. Hence some IceT specific classes are in ParaViewrepository. However, we have plans to move IceT to VTK itself. Once thathappens, these classes will move to VTK as well and one would have have to bringin ParaView for writing VTK-based examples using IceT.
As described in the section Problem Types, each simulation type writes relevant postprocessed scalar quantities to disk in the directory specified by config["Problem"]["Output"], including but not limited to computed values like eigenfrequencies, scattering parameters, or lumped element parameters. In addition, each simulation type will write a file called domain-E.csv, which includes information about the electric and magnetic field energies, as well as lumped element energies, for each step of the simulation (eigenmode, frequency, or time step, for examples).
When specified in the configuration file, the electric field and magnetic flux density solutions are written to disk for 3D visualization with ParaView. Various other postprocessed fields are also written to the ParaView database as available, including electric and magnetic energy density, surface currents, and charge density. These files are found in the paraview/ directory located in the output directory specified under config["Problem"]["Output"].
08ab062aa8