-
Notifications
You must be signed in to change notification settings - Fork 755
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
PDE with additional parameters #1762
Comments
Use |
Hi, thank you. |
Sorry, my bad. Here you can find issues to solve parametric problems. |
Thank you very much. |
The easiest way to handle complex geometry is to not use CSG tool provided in DeepXDE but create your own dataset separately. Use any tool such as simple looping in python or may be simulation tools such as hypermesh or Salome Meca to create your coordinates for your geometry. Personally, I have used salome meca to generate a geometry it has nice buttons to extract csv file of nodal coordinates of any boundary, but you can always use python if the geometry is not too complicated. All you need is two arrays of coordinates for your boundary points and collocation points. This can be a numpy array. To add the parametric term create a 1D array of the parameter range and use Let us assume your nodal coordinates (x,y) are of shape (100, 2) and the parameter array is (10,1). When you use itertool.multiply you will get a training dataset of (1000,3), where the columns are (x,y, param) Now in data = dde.data.PDE(
geom,
pde,
[bc_array],
num_domain = 0,
num_boundary = 0,
anchors=nodes
) |
Thank you very much. I can try in this way. If I have more than one parameter, you think I can work the same way? |
yes if you have n parameters in your parametric problem, you can do itertools the same way. Say nodal_coordinates has a shape of (100,2) and both parameter has a shape of (10,1), you will end up with a training dataset of shape (100 * 10 * 10 , 2+1 +1) or simply (10000, 4). Please choose the geometrynd as geometry in |
Thank you very much |
Hi, how can I do if I want to solve a parametric PDE in deepxde? For instance, how can I give as additional input to the network a material parameter?
Thank you
The text was updated successfully, but these errors were encountered: