Code Monkey home page Code Monkey logo

f3grid_converter's Introduction

f3grid converter

convert .f3grid file to vtu and export six box-like boundary surface if possible

How to use this tool

  • By download release: if you don't want to build code, you can download pre-build exe file directly, link here

  • By compile code: the code compile is simple(A standard cmake project compile pipeline) and all dependency is included in this repository already(you dont need to manuly config any environment things or external lib), below are some step to compile this code on windows PC

    • install git/vs studio(with c++ desktop development kit and cmake install)

    • git clone this repository by cmd git clone https://github.com/xmyhhh/f3grid_converter.git

    • open clone folder by vs studio, if everything is ok, a cmake scan will automaticaly begin

    • after cmake scan, find the MAIN target

    • click and build/debug the MAIN target

Usage

  • Step 1: Run the.exe directly, which will generate a.json file in the same location as the.exe.
  • Step 2: Edite the generated .json file. for example:
    • input_file_path is the .f3grid file path
    • export_six_surface_setting is the axis rotation when export six boundary surface
    • export_face_related is the switch that controls whether export six boundary surface
    • export_face_related is the switch that controls whether export face related things
{
    "export_six_surface_setting": {
        "r_x": -50,
        "r_y": 0,
        "r_z": 0
    },
    "input": {
        "input_file_path": [
            "C:\\Users\\xmyci\\Documents\\WeChat Files\\wxid_jsf6r3h7bf0x22\\FileStorage\\File\\2024-02\\model(group).f3grid"
        ]
    },
    "output": {
        "export_face_related": false,
        "export_six_surface": true,
        "save_output_path": "."
    }
}
  • Step 3: Run the.exe again, and the vtu will be generated in the path setting by save_output_path

f3grid_converter's People

Contributors

xmyhhh avatar

Stargazers

Rocky Chan avatar  avatar

Watchers

 avatar

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.