Comments (7)
We have been mostly using NetCDF format for sampling output and manipulating the resulting NetCDF files with Python/matplotlib. The images you refer to in the exawind/wind-energy repo is loading the full 3D flowfield in ParaView (@gantech can confirm).
If you want to continue using native format, I have heard that yt is another option to visualize AMReX datasets? We will look at updating the native interface so that you don't have to manually copy files to load them in ParaView. @marchdf any thoughts here on why particle data won't load/render in VisIt?
from amr-wind.
I would be fine with using NetCDF and python/matplotlib. I will look at making the change so that AMR-Wind willl write out sampling data in NetCDF. That seems like the easiest path forward at this point.
I tried yt and Amvis as well, but neither worked. Amvis says that the dataset is 0D and it doesn't know how to display. yt says that it can't load the data.
I'm happy to provide any error output from the various viz tools if that would be helpful at all.
from amr-wind.
@rd-contr NetCDF support must be explicitly activated in AMR-Wind.
cmake -DAMR_WIND_ENABLE_NETCDF=ON -DNETCDF_DIR=<path_to_netcdf_install>
You can see this IPython notebook for an example of how to extract data from the netcdf files.
from amr-wind.
Copy. Thank you for the pointer on adding the NetCDF support. I'll get my binaries rebuilt. Will also check out the iPython notebooks.
from amr-wind.
@rd-contr If you are comfortable with python scripting, then you might also want to look into the AmrexParticleFile in the tools directory. I have not used it a lot after we moved to NetCDF, but you might be able to use this to process the files you already have
amr-wind/tools/amrex_particle.py
Lines 16 to 20 in 4e16da0
from amrex_particle import AmrexParticleFile
# load the 10-th time index
pfile = AmrexParticleFile.load(10)
# Process the file and return a Pandas dataframe
df10 = pfile()
The Pandas DataFrame has index which is the unique identifier for a given particle. It also has two additional columns set_id
and probe_id
which you can filter on to get a particular set of sampling probes and the probe_id
s start from 0 for each set of sampling points. The columns xco, yco, zco
are the coordinates of the particle/probe, and the remaining columns are the field data you had requested.
from amr-wind.
Thanks for the tip on the python code for interacting with AMReX particle files. I will check it out.
from amr-wind.
@rd-contr closing issue due to inactivity. Please reopen if you have follow-up questions.
from amr-wind.
Related Issues (20)
- Discussion Question: Forested Areas and Terrain - Drag Based Models HOT 2
- Segfaults on initial MAC projection HOT 24
- Underestimated power predictions from OpenFAST/ALM turbine models in unsteady flows HOT 48
- Averaging (Post Processing AMR Wind) HOT 3
- Enable changing velocity in turbine simulations from precurors HOT 9
- Cannot find field: tke HOT 2
- Geostrophic Forcing flaws HOT 4
- FLLC Reintroduced bug HOT 1
- Feature request: ABL statistics on level >0 HOT 1
- Segfault of AMR-Wind + OpenFAST with oneapi HOT 2
- MMC forcing fails with GPU HOT 3
- Add time-vary & spatially varying body force for MMC simulations HOT 1
- GPU Unit test Failues: DiagnosticsTest.Max_Vel_MultiLevel and Max_MACvel_MultiLevel HOT 1
- Segmentation fault when running more than one turbine HOT 11
- Encountered NetCDF error; aborting HOT 6
- MAC velocity not getting filled correctly at the low boundary HOT 18
- Instability in some simulation HOT 10
- storing postprocessing files in another directory
- I encountered the following problems in the process of learning to use TurbineFASTLine. Is this due to the version of TurbineFastline HOT 3
- ow_w2a test is non deterministic on CPU
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 amr-wind.