Git Product home page Git Product logo

Comments (2)

lucduron avatar lucduron commented on June 9, 2024

Dear Keith,

Unfortunately I do not have this kind of tool in PyTelTools.
We developed a script to convert a 3D Serafin file to a 2D Serafin file (see https://github.com/CNR-Engineering/PyTelTools/blob/master/cli/slf_3d_to_2d.py) by vertical aggregation. For this tool the possible functions are : min, max and mean (mean considering the space between planes, see

# Compute dimensionless layer ponderations for mean operation
weight = None
if self.operation == MEAN:
diff_upper = z - np.roll(z, 1, axis=0)
diff_upper[0, :] = 0.0
diff_lower = np.roll(z, -1, axis=0) - z
diff_lower[-1, :] = 0.0
diff = (diff_upper + diff_lower) / 2
diff_sum = diff.sum(axis=0)
with np.errstate(divide='ignore', invalid='ignore'):
weight = diff / diff_sum
).
I fear you have to perform a vertical interpolation (and taking care of out of bounds) 2D node by 2D node.
It would be great to integrate such tool in PyTelTools, let me know if you manage to a satisfactory tool.

Best Regards,
Luc

from pyteltools.

krober10nd avatar krober10nd commented on June 9, 2024

Thanks Luc. I actually found a conference proceeding you wrote discussing pyteltools and then discovered the workflow feature. I figured out how to export to vtk and then can do the cross sections using pyvista or paraview.

from pyteltools.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.