Hi Wil
One can only import stuff that it supported by the format. I have not been able to figure out how names would be saved in VTU format for Paraview. Once I know the format, if such exists, it is pretty minor coding task. Any ideas?
-Peter
<?xml version="1.0"?>
<VTKFile type="UnstructuredGrid" version="0.1" byte_order="LittleEndian">
<UnstructuredGrid>
<Piece NumberOfPoints="331" NumberOfCells="1616">
<PointData>
<DataArray type="Float64" Name="temperature" NumberOfComponents="1" format="appended" offset="0"/>
<DataArray type="Float64" Name="temperature loads" NumberOfComponents="1" format="appended" offset="2652"/>
<DataArray type="Float64" Name="velocity 1" NumberOfComponents="1" format="appended" offset="5304"/>
<DataArray type="Float64" Name="pressure" NumberOfComponents="1" format="appended" offset="7956"/>
<DataArray type="Float64" Name="flow solution loads" NumberOfComponents="3" format="appended" offset="10608"/>
</PointData>
<CellData>
<DataArray type="Int32" Name="GeometryIds" format="appended" offset="18556"/>
</CellData>
<Points>
<DataArray type="Float64" NumberOfComponents="3" format="appended" offset="25024"/>
</Points>
<Cells>
<DataArray type="Int32" Name="connectivity" format="appended" offset="32972"/>
<DataArray type="Int32" Name="offsets" format="appended" offset="57040"/>
<DataArray type="Int32" Name="types" format="appended" offset="63508"/>
</Cells>
</Piece>
</UnstructuredGrid>
<AppendedData encoding="raw">
_X
Header
CHECK KEYWORDS Warn
Mesh DB "." "."
Include Path ""
Results Directory ""
End
Simulation
Max Output Level = 5
Coordinate System = Cartesian
Coordinate Mapping(3) = 1 2 3
Simulation Type = Steady state
Steady State Max Iterations = 1
Output Intervals = 1
Timestepping Method = BDF
BDF Order = 1
Solver Input File = case.sif
Post File = case.vtu
End
Constants
Gravity(4) = 0 -1 0 9.82
Stefan Boltzmann = 5.67e-08
Permittivity of Vacuum = 8.8542e-12
Boltzmann Constant = 1.3807e-23
Unit Charge = 1.602e-19
End
Body 1
Target Bodies(1) = 1
Name = "Body 1"
Equation = 1
Material = 1
End
Solver 2
Equation = Electrostatics
Variable = Potential
Procedure = "StatElecSolve" "StatElecSolver"
Exec Solver = Always
Stabilize = True
Bubbles = False
Lumped Mass Matrix = False
Optimize Bandwidth = True
Steady State Convergence Tolerance = 1.0e-5
Nonlinear System Convergence Tolerance = 1.0e-7
Nonlinear System Max Iterations = 20
Nonlinear System Newton After Iterations = 3
Nonlinear System Newton After Tolerance = 1.0e-3
Nonlinear System Relaxation Factor = 1
Linear System Solver = Iterative
Linear System Iterative Method = BiCGStab
Linear System Max Iterations = 500
Linear System Convergence Tolerance = 1.0e-10
BiCGstabl polynomial degree = 2
Linear System Preconditioning = Diagonal
Linear System ILUT Tolerance = 1.0e-3
Linear System Abort Not Converged = False
Linear System Residual Output = 1
Linear System Precondition Recompute = 1
End
Solver 1
Equation = Result Output
Output Format = Vtu
Procedure = "ResultOutputSolve" "ResultOutputSolver"
Variable = b
!Variable2 = d
Output File Name = case
Scalar Field 3 = d
Scalar Field 2 = b
Scalar Field 1 = Potential
Exec Solver = Always
End
Equation 1
Name = "Equation 1"
d = Real 1.
Active Solvers(2) = 2 1
End
Material 1
Name = "Air (room temperature)"
Viscosity = 1.983e-5
Heat expansion Coefficient = 3.43e-3
Heat Conductivity = 0.0257
Relative Permittivity = 1.00059
Sound speed = 343.0
Heat Capacity = 1005.0
Density = 1.205
End
Boundary Condition 1
Target Boundaries(1) = 1
Name = "BoundaryCondition 1"
Potential = 1
b=Real 1.
End
Boundary Condition 2
Target Boundaries(1) = 2
Name = "BoundaryCondition 2"
Potential = 2
b = Real 2.
End
Boundary Condition 3
Target Boundaries(1) = 3
Name = "BoundaryCondition 3"
b = Real 3.
End
Geometry Id = Integer
Default Body Id = Integer
Default BC id = Integer
BC id offset = Integer
raback wrote:Ok, I don't think there is an easy way to directly use the names in Paraview. Having a field that is 1 only for a name and 0 for others would be a solution but a quite excessive one.
vtu group collection = logical true
Users browsing this forum: No registered users and 3 guests