Comments (6)
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.
Hi,
thanks, it works almost for my case:
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.
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.
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
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.
Done #51 :-)
Enjoy
from fluidfoam.
Thank you!
from fluidfoam.
Related Issues (11)
- Verbose flag/level for reading fields HOT 4
- Support for multi-region cases HOT 8
- Cannot read the airfoil2D case from OpenFOAM tutorials HOT 10
- [Meta]: Adding releases to the Github repository HOT 2
- Scipy version HOT 2
- readpostpro probe reader header information HOT 3
- read probes error. HOT 4
- Simple change to improve compatibility HOT 3
- Update Sphinx config for favicon HOT 1
- great work. but how to install it? HOT 1
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 fluidfoam.