New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to train a general model for all temperature distribution in thermo-mechanical PDE? #482
Comments
Yes, it works. Just treat dT as another coordinate like x y z. |
Dr. Lu, thanks for your response. It works now! Another quick question... Could you tell me how to resample anchors data points for every given number of epochs: For example, I have 10000 anchors data points and I only want to use random 1000 points for every given number of epochs. I have looked at 'diffusion_1d_resample.py' example, but it might not fit my needs. Thanks! |
You might check PDE.replace_with_anchors |
Dr. Lu, thanks so much for your help! I have another question. When I train the model using both Adam and LBFGS, the training process would automatically stop with "Message: CONVERGENCE: REL_REDUCTION_OF_F_<=_FACTR*EPSMCH". The console message is: Best model at step 25853: And sometimes LBFGS would automatically stop after 15000 epochs. Could you tell me how I can let the optimizer not stop that early, for example, how to stop only after train loss < 1e-6? My optimizer code is: Thanks! |
Hi Dr. Lu,
I'd like a train a model that can get the results for all possible thermal distributions. The stress equation is as follows (I omit other equations just for simplicity):
The 2D model size is 1 by 1. The temperature distribution dT here can be any temperature range from 0~1. The boundary conditions are the same.
My naive thought is to sample all possible dT distributions and then randomly choose some of them to train. The dT can be treated as an input variable in x and stress as u in pde(x,u).
Could you tell me if DeepXDE has related module to implement this? Thanks!
The text was updated successfully, but these errors were encountered: