Coder Social home page Coder Social logo

handling multiple regions about fluidfoam HOT 6 CLOSED

fluiddyn avatar fluiddyn commented on June 3, 2024
handling multiple regions

from fluidfoam.

Comments (6)

CyrilleBonamy avatar CyrilleBonamy commented on June 3, 2024

Hi
I developed very quickly the support for regions/sets.
Can you test with the fluidfoam of my fork : https://github.com/CyrilleBonamy/fluidfoam/ ?
If you have difficulties to install fluidfoam from my fork, don't hesitate to contact me :-)

Example to use (to read pressure field and associated mesh) :

p = fluidfoam.readfield(path='.', region="bottomWater", name="p", time_name="50")
x, y, z = fluidfoam.readmesh(path='.', region="bottomWater")

from fluidfoam.

fab6 avatar fab6 commented on June 3, 2024

Hi,
thanks, it works almost for my case:
image
Temperature is read from the regions, though its looking for a sets field, which is not always available.

I used a slight adjustment

import fluidfoam 
T = fluidfoam.readfield(path='../', region="rightRoom", name="T", time_name="50")
print(T)
print(T.max())
T = fluidfoam.readfield(path='../', region="rightWall", name="T", time_name="50")
print(T)
print(T.max())
x, y, z = fluidfoam.readmesh(path='../', region="rightWall")
x, y, z = fluidfoam.readmesh(path='../', region="rightRoom")

Thank you very much!

from fluidfoam.

CyrilleBonamy avatar CyrilleBonamy commented on June 3, 2024

I am not sure I understand your point about the "sets" field not always being available. Do you have an exemple of such case ?

from fluidfoam.

fab6 avatar fab6 commented on June 3, 2024

From my understanding of this error message, fluidfoam is trying to read the sets folder in polyMesh. In the tutorial this is not deleted, e.g. see here
image
but this actually not needed for the simulation. This is why, it is not available in my case.

Sorry, forgot to mention... I just sent the case via email.
Thank you very much!

from fluidfoam.

CyrilleBonamy avatar CyrilleBonamy commented on June 3, 2024

Done #51 :-)
Enjoy

from fluidfoam.

fab6 avatar fab6 commented on June 3, 2024

Thank you!

from fluidfoam.

Related Issues (11)

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.