Comments (4)
After generating test files for Lagrange elements of order 2 and 3 (9 and 16 points, respectively), I learned that ParaView 5.5.0 and 5.8.0 can read them. The elements can be automatically subdivided for smoother surface rendering as well. This looks nice. But contours are still terrible. In fact, they are even worse for these Lagrangian HO elements than for the standard bicubic quads! The contour lines are still jagged, and do not even fall onto the non-subdivided surface (i.e. some run beneath the surface and some above). It is essentially unusable.
<VTKFile type="UnstructuredGrid" version="0.1" byte_order="LittleEndian" header_type="UInt32">
<UnstructuredGrid>
<Piece NumberOfPoints="16" NumberOfCells="1">
<Points>
<DataArray NumberOfComponents="3" Name="position" type="Float32" format="ascii"> 0.15 0.1 0.0 0.85 0.1 0.0 0.95 0.9 0.0 0.05 0.9 0.0 0.35 0.11 0.0 0.55 0.11 0.0 0.88 0.35 0.0 0.92 0.65 0.0 0.35 0.92 0.0 0.65 0.92 0.0 0.12 0.35 0.0 0.08 0.65 0.0 0.35 0.36 0.05 0.58 0.36 0.05 0.35 0.67 0.05 0.62 0.67 0.05 </DataArray>
</Points>
<Cells>
<DataArray Name="connectivity" type="Int32" format="ascii"> 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 </DataArray>
<DataArray Name="offsets" type="Int32" format="ascii"> 16 </DataArray>
<DataArray Name="types" type="UInt8" format="ascii"> 70 </DataArray>
</Cells>
<PointData Scalars="density">
<DataArray Name="density" type="Float32" format="ascii"> 0.2 0.3 0.7 0.5 0.23 0.27 0.4 0.5 0.57 0.62 0.3 0.4 0.4 0.45 0.45 0.5 </DataArray>
</PointData>
</Piece>
</UnstructuredGrid>
</VTKFile>```
from omega2d.
My conclusion is that, given the current state, we should internally subdivide our HO elements into linear quads at higher resolution than the Legendre or Lagrange points themselves, and just write a larger number of VTK_QUAD elements into our vtu files.
from omega2d.
AH! I spoke/wrote too soon. These higher-order elements are useful, but one must first "Tesselate" the elements, then apply Contour.
from omega2d.
Old-style bicubic quads are now supported as measurement features and writing to vtu with 4ad8bae
Not closing this issue because we still do not support the arbitrary-order Lagrange elements (but is that necessary?)
from omega2d.
Related Issues (20)
- Add support for arbitrary airfoil sections
- Use ZLib to compress PNG and VTU file output HOT 1
- Allow Polygon class to have unequal sides
- Draw features as the user is creating/editing
- OSX Crash with square boundary
- Allow Polygon class to have more than 17 sides
- Windows crash with speed test
- We need a curved boundary segment
- Line of emitters is not working HOT 2
- Don't solve first step on json load
- Polygon type isn't loading
- Vtk writing needs to be restructured HOT 1
- Json read_x_json should be moved inside x class
- Calculate vorticity HOT 1
- Need BoundaryFeature for user-defined outlines
- Read GMSH mesh file and create BoundaryFeature
- Program should not crash when a json keyword is not found
- Case insensitivity in all string input
- Spurious shed particles near acute angle boundaries
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from omega2d.