andreweiner / ofw2022_dmd_training Goto Github PK
View Code? Open in Web Editor NEWMaterial for the OpenFOAM workshop 2022
License: GNU General Public License v3.0
Material for the OpenFOAM workshop 2022
License: GNU General Public License v3.0
Hi there, I am trying to follow an example of DMD, as
follows. https://github.com/AndreWeiner/ofw2022_dmd_training/blob/main/dmd_flowtorch.ipynb But the CSVDataloader could never be able to load the surface1 dataset succesfully, with the problem as follows.
Could you please check with the issue? Thanks a million!
ValueError Traceback (most recent call last)
Cell In[35], line 2
1 path = r'surface1'
----> 2 loader = CSVDataloader.from_foam_surface(path, "U_plane_xy.raw")
3 times = loader.write_times
File E:\softwares\Anaconda3\envs\pyflowt\lib\site-packages\flowtorch\data\csv_dataloader.py:200, in CSVDataloader.from_foam_surface(cls, path, file_name, header, dtype)
180 """Create CSVDataloader instance to load OpenFOAM surface sample data.
181
182 The class method simplifies to load data generated by OpenFOAM's
(...)
197
198 """
199 folders = glob(f"{path}/*")
--> 200 times = sorted(
201 [folder.split("/")[-1] for folder in folders], key=float
202 )
203 filepath = join(path, times[0], file_name)
204 with open(filepath, "r") as surface:
ValueError: could not convert string to float: 'surface1\30.06'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.