Comments (4)
Hello Anthony, great to hear the reader helped you with your projects already. I am sure we will be able to easily fix your issue as well.
The solution to the problem is actually quite simple, at the moment I skipped the case when there is boundary data which does not belong to any boundary as most of the times this data is an unwanted byproduct which until now could always be ignored.
I will find a way to include the mesh-dependent data as well.
from fdsreader.
Implemented in 77f0750
To support boundary data that does not belong to any obstruction (but to a mesh instead), I simply added boundary-data support for meshes. Now the boundary data you are interested in should be accessible from the corresponding mesh.
A short example of how it works:
import fdsreader as fds
sim = fds.Simulation("./fds_simple_circles")
mesh = sim.meshes[0] # The first mesh
bndf = mesh.get_boundary_data("mass_flux_SPEC_1") # Get boundary data for a specific quantity
patch = bndf.data[3] # Orientation 3 (positive z-direction)
print(patch.data) # Numpy array with the actual data for the so called patch, with the mesh size (xy-plane) as its dimension
The code worked with FDS 6.7.6 and FDSReader 1.2.2.
@amarcozzi Please test it yourself (with the newest version of the fdsreader) and tell me if it works for you.
from fdsreader.
Thank you so much for your help! This worked exactly as I hoped it would. I'll keep my eye out for other open issues that pop up in this repo - I'd be happy to help contribute.
from fdsreader.
Great to hear and thanks a lot!
from fdsreader.
Related Issues (20)
- Reading Multi-mesh with different mesh size HOT 10
- Slice data structure HOT 5
- Issue and fix for reading data from meshes of same ID HOT 2
- Add TITLE to Simulation class HOT 1
- Slicefiles in certain geometrys get split when using to_global HOT 6
- Is there a convenient way to display obstacles in slices? HOT 1
- to_global() output 2 slices for a uniform domain defined with multi meshes HOT 11
- A code problem about "pl3d_example.py" HOT 8
- API Documentation Particles HOT 1
- Problem with particle quantities HOT 12
- Limited functionality for simulations ran with nightly build FDS version HOT 11
- SCLF Data not Accurate HOT 3
- how to install fdsreader on linux cluster HOT 5
- Problems with smoke3d to_global() HOT 1
- Averaging FDS SLCF data HOT 1
- Get RGBA-Value of obstruction from Surf_Id HOT 2
- Warning regarding module vent when assessing slice HOT 2
- Error: module 'numpy' has no attribute 'math' in get_nearest_timestep HOT 2
- Reading boundary files that are not associated with with a namelist object.
- Problem in reading SLCF data in FDS 6.9.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 fdsreader.