Coder Social home page Coder Social logo

cfdbench's People

Contributors

chen-yingfa avatar luo-yining avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

cfdbench's Issues

`CfdNN` not found

Dear Yining Luo and Yingfa Chen:
Thanks for your excellent codes shared with us, but I had some questions about it. That is below:
中文版:
在CFDBench-main/src/models/pinn.py文件中
from .base_model import CfdNN
但是没有CfdNN这个函数或模块
English Version:
In the CFDBench-main/src/models/pinn.py modules
from .base_model import CfdNN
I didn't find out the module named CfdNN
image
image

训练完模型后修改args.py中mode: str = "test",无法运行模型文件

image
大佬您好:
我训练时候的src/args.py中的mode: str = "train-test",能训练并预测模型,这不会出错。但当我将src/args.py中的mode: str = "test",我于src.utils.py中的get_best_ckpt()ckpt_dirs = sorted(output_dir.glob("ckpt-*"))断点发现,ckpt_dirs返回空字符串,我搞不清楚为什么会这样,希望大佬能解惑。
非常感谢!

另外,我做了一张该代码的uml图,如有不正确的地方,希望各位指正~
https://drive.google.com/file/d/1jc0of_o-XIJvoqIjQMnoM6aUn5m3bm6j/view?usp=sharing
cfdBench drawio

Missing package

Please ask big brother, the code used in the environment version can be marked, I python3.12 and torch2.1 when running many versions conflict

The Dam dataset folder structure is wrong

微信截图_20231128104122

In dam's packet, only subfolders such as case001 are entered, and there are no subsets of bc, geo, and prop after opening, but a series of folders at the beginning of case, and the code cannot be executed against dam, the error is as follows:
python train_auto.py --model fno --data_name dam_case
in get_dam_auto_datasets
assert case_dirs
AssertionError

Originally posted by @justgoinggoxixi in #1 (comment)

src.dataset.__init__.py 没有"cavity"文件的运行

在24行
assert problem_name in ["cylinder", "tube", "dam", "cylinder"]
以及34行
elif problem_name == "cylinder": # data_dir = Path("data", data_name) train_data, dev_data, test_data = get_cavity_datasets( data_dir / problem_name, case_name=subset_name, norm_props=norm_props, norm_bc=norm_bc, ) return train_data, dev_data, test_data
还有94行
elif problem_name == "cylinder": train_data, dev_data, test_data = get_cavity_auto_datasets( data_dir / problem_name, case_name=subset_name, norm_props=norm_props, norm_bc=norm_bc, delta_time=delta_time, ) return train_data, dev_data, test_data
这里的problem_name与下方的get_cavity_auto_datasets不符,也许需要改成"cavity"

Why hasn't the velocity field v been predicted?

When inputting, U (u, v) is trained as two channels by the network, but in the output image, only the velocity field u is present without v. As shown in the train auto code: inputloss: dict=model. loss_fn(
Labels=labels [:,: 1], preds=inputs [:,: 1], the author only uses the output of the first channel for loss, so why do we need to input the v velocity field?


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.