Computational Domain
Computational Domain
  • 9
  • 114 926
Coupling Neural Network with a CFD Solver
In this video, I demonstrate the process of training a physics informed neural network and implementing it in a CFD solver to create a custom boundary condition. Below you can find the link to the github repository:
Github: github.com/ComputationalDomain/wakeFoam
Resources:
- doi.org/10.1115/ICEF2022-90371
- doi.org/10.1016/j.energy.2021.121603
- doi.org/10.2514/1.J059997
- www.tfd.chalmers.se/~hani/kurser/OS_CFD_2016/FangqingLiu/openfoamFinal.pdf
Music: th-cam.com/video/qTrkTRBwZVc/w-d-xo.html
Thanks for watching, don't forget to leave a like and subscribe for more video on machine learning and fluid dynamics!
มุมมอง: 3 416

วีดีโอ

Teaching Neural Network to Solve Navier-Stokes Equations
มุมมอง 78Kปีที่แล้ว
In this video, I demonstrate the process of building a physics informed neural network to predict the behavior of vortex shedding using the Navier-Stokes equations. Below you can find the link to the github repository: Github: github.com/ComputationalDomain/PINNs Resources: - arxiv.org/pdf/1711.10566.pdf - arxiv.org/pdf/2103.09655.pdf - th-cam.com/video/qYmkUXH7TCY/w-d-xo.html&ab_channel=AmirGh...
Simulation of an ignition process in OpenFOAM
มุมมอง 887ปีที่แล้ว
Here is a transient simulation of an ignition process of a Sandia/TUD burner. The temperature of the pilot was adjusted using a time varying boundary condition.
Solving ODE using Machine Learning
มุมมอง 9Kปีที่แล้ว
In this tutorial I explain how to solve Ordinary Differential Equations using machine learning in python. If anything was unclear to you, leave a question in the comment sections. If you enjoyed the video leave a like button and share a comment! Optimization algorithm: towardsdatascience.com/bfgs-in-a-nutshell-an-introduction-to-quasi-newton-methods-21b0e13ee504 Github: github.com/Computational...
Simulation of a Propeller in openFOAM Tutorial: Part 2/2
มุมมอง 3.6K2 ปีที่แล้ว
In this tutorial I explain how to run an incompressibl simulation of a propeller in openFOAM. If anything was unclear to you, leave a question in the comment sections. If you enjoyed the video leave a like button and share a comment! github: github.com/ComputationalDomain/Propeller
Simulation of a Propeller in openFOAM Tutorial: Part 1/2
มุมมอง 8K2 ปีที่แล้ว
In this tutorial I explain how to run an incompressibl simulation of a propeller in openFOAM. If anything was unclear to you, leave a question in the comment sections. If you enjoyed the video leave a like button and share a comment!
Lid-driven Cavity Flow in Ansys CFX
มุมมอง 5312 ปีที่แล้ว
This is a video showing a process of making a lid-driven cavity flow CFD simulation in Ansys CFX. The simulation was performed for the Reynold's number of 10, which was specified by changing kinematic viscosity. If you're interested in more content like this simply subscribe my channel. Don't forget to share your thoughts in the comment section, and perhaps leave a like! Music: th-cam.com/video...
Generating C-Mesh around Airfoil in gmsh
มุมมอง 10K2 ปีที่แล้ว
The video shows how to create a C-Mesh around an airfoil for a CFD simulation. In the video I used a python script to convert the coordinates of the airfoil into a .geo file. The mesh, geometry file and python code are in the github repository. If you enjoyed the video leave a like button and share a comment! Airfoil data: airfoiltools.com/airfoil/details?airfoil=rae69ck-il Github: github.com/C...
Dam Break Multiphase Flow Simulation in Ansys CFX
มุมมอง 7982 ปีที่แล้ว
This is a video showing a process of making a dam break CFD simulation in Ansys CFX. In case you're interested in improving the results on your own I advise to decrease the time step to 0.001 s. If you're interested in more content like this simply subscribe my channel. Don't forget to share your thoughts in the comment section, and perhaps leave a like! Music: th-cam.com/video/n68f_Oh2N1k/w-d-...

ความคิดเห็น

  • @dmcd7413
    @dmcd7413 28 วันที่ผ่านมา

    Hello, thanks very much for putting together these great tutorials. Please could I ask for some help with the SnappyHexMesh setup - after I run "snappyHexMesh -overwrite", my boundaryfile is set up with "innerCylinderSmall" and "innerCylinderSmall_slave" boundary definitions - rather than the expected "AM1" and "AMI2" boundary definitions. Please could you help me correct this :)

  • @progfanCoke
    @progfanCoke หลายเดือนก่อน

    Could humanity one day utilize this knowledge to enhance the rheological properties of a bolus, thereby simulating an accurate, "real" human swallowing process? I'm a Speech-Language Pathologist working with patients who have Dysphagia.

  • @asingh5641
    @asingh5641 2 หลายเดือนก่อน

    Hello Sir make video on solving coupled Ode's using deepxde library

  • @hassanabdullahi9920
    @hassanabdullahi9920 3 หลายเดือนก่อน

    Hello Adam, I think your explanations are clear and good, and they serve me as a basis for a simulation of centrifugal compressor. I can't make it and therefore I need support. How can we talk to each other directly?

  • @davideacerns
    @davideacerns 4 หลายเดือนก่อน

    How about to create a C-Mesh if the AoA is different than zero?

    • @Ulani15
      @Ulani15 27 วันที่ผ่านมา

      I guess same procedure but you need to download .dat file of your airfoil already in that AoA.

  • @b.mwhite3697
    @b.mwhite3697 4 หลายเดือนก่อน

    I was thinking through your problem with LBGFS vs mini-batching like SGD or ADAM. Isn't it the case that you can shuffle your mini batches more effectively and/or involve some gradient accumulation, to prevent the overlooking of key physical constraints in the cylinder wake problem? That way you can achieve the same result without needing this much compute and the possible memory bottleneck that your solution involves?

  • @shero4119
    @shero4119 4 หลายเดือนก่อน

    2:53 Can anyone please explain how is the cost function (boundary conditions) obtained using supervised learning?

  • @Parisaasghari-lo2by
    @Parisaasghari-lo2by 4 หลายเดือนก่อน

    Thank you for this video. I have two questions in the part def loss(t): 1) why did you write u.sum() at line 3 when you want to compute the gradients? 2) why did you write [0] in the end of line 3?

  • @duypham4360
    @duypham4360 4 หลายเดือนก่อน

    hi,i replaced the obj file with my obj file but when i run the "mpirun..." , the sum of forces , moment is alway 0 all the time, can you help me

  • @tonyhamster6742
    @tonyhamster6742 4 หลายเดือนก่อน

    Hello, your code doesn't work. Can you help me?

  • @darkside3ng
    @darkside3ng 5 หลายเดือนก่อน

    amazing work!!!!! :)

  • @user-of6vf9uv3z
    @user-of6vf9uv3z 5 หลายเดือนก่อน

    With what changes would it be possible to create a model that takes as an input an unknown geometry and then predicts the velocity and pressure fields?

  • @paulmarca9612
    @paulmarca9612 5 หลายเดือนก่อน

    How did you initialize your parameters in the network?

  • @moisessena1307
    @moisessena1307 5 หลายเดือนก่อน

    how to deal with the derivative with respect to time?

  • @TENTikkTik
    @TENTikkTik 5 หลายเดือนก่อน

    Couldbyou make this available to download?

  • @a243-c9r
    @a243-c9r 6 หลายเดือนก่อน

    Hello I simply love the way you explained the physics informed neural networks and especially the coding part. Kudos!! I am new to the topic of PINNs and I just wanted to ask you can we implement a PINNs for 1st order coupled ODE system with just one independent variable? like dP/dt = f(x, y); dS/dt = g(x, P); dT/dt = h(x, y, S, T)? If yes could you please tell some examples where I can find a way to code the same? Thank you very much in advance!! Subscribed your channel as well!

  • @designsimulate3384
    @designsimulate3384 6 หลายเดือนก่อน

    Hi, from where I can get the stl file you have used?

  • @antoine1407
    @antoine1407 6 หลายเดือนก่อน

    Do you know how we can add period boundary condition to both sides ?

  • @perero
    @perero 7 หลายเดือนก่อน

    Does this video mean that the trained model can be generally applied to other fluid situations? Or is this only showing that such nonlinear network can approximate to the given result when trained for certain cases?

    • @michaelpieters1844
      @michaelpieters1844 3 หลายเดือนก่อน

      The trained model in this example can not be applied to other fluid situations.

  • @S_Jamshidi-Fluid_Mechanics
    @S_Jamshidi-Fluid_Mechanics 7 หลายเดือนก่อน

    Hi there, fantastic work. However, could you provide us a little bit about normalization process of data? Tnx

  • @MDNQ-ud1ty
    @MDNQ-ud1ty 7 หลายเดือนก่อน

    Neural networks do not give analytical or exact solutions nor do they prove the existence of solutions. There is a huge difference between exact solutions and numerical solutions.

  • @PastaSenpai
    @PastaSenpai 7 หลายเดือนก่อน

    Hey Adam, don’t understand anything but I support the channel 😂 - Erik

  • @antoine1407
    @antoine1407 7 หลายเดือนก่อน

    It helped a lot. Thank you

  • @fadoobaba
    @fadoobaba 9 หลายเดือนก่อน

    What if we don't have training data? No experiments no cfd. Just equations and boundary conditions

  • @rogerzen8696
    @rogerzen8696 9 หลายเดือนก่อน

    great topic, horrible audio 😨

  • @AlexWong-lq4pt
    @AlexWong-lq4pt 9 หลายเดือนก่อน

    Genuinely fascinated by the use of PINNs to accelerate computation of such important problems like this! Is it in any way possible to train something like this (even if only in 1D) on a strong pc? If so, what specs would you use? (I am planning to conduct further research into this specific use of PINNs 😅)

  • @nagapavanvaka857
    @nagapavanvaka857 9 หลายเดือนก่อน

    how can we solve this if we don't know the exact solution. explain how the loss function changes

    • @computational_domain
      @computational_domain 9 หลายเดือนก่อน

      I only used the boundary condition in the loss function and the exact solution was only used to compare the results obtained from the NN. Everything would remain the same if you didn't know the full analytical solution.

    • @nagapavanvaka857
      @nagapavanvaka857 9 หลายเดือนก่อน

      @@computational_domain okay understood now , thank you. but i want to know to find the derivative at particulat value everytime. please solve this equation {u''(x) = 0, u(0) = 0, F = A E u'(L), 0<=x<=L} here A is cross section area E is youngs modulus and L is length of the steel rod u is the elongation at a distance x from the origin I want to solve this problem using ANN but i dont understand how to define the loss for F = A E u'(L) this boundary condition

  • @yadavnikhil2290
    @yadavnikhil2290 10 หลายเดือนก่อน

    How can I get the same predicted graph of the paper with your code. 4:48 The graph your code is giving is from 0 to 50 in y-axis and 0 to 100 in x-axis. I tried changing the axis values but I was not getting the same graph as the paper.

  • @user-dx1tx8wp1w
    @user-dx1tx8wp1w 10 หลายเดือนก่อน

    Very nice. Thank for teaching us. When I run mine, i got the error [0] --> FOAM FATAL IO ERROR: (openfoam-2112 patch=220610) [0] Cannot find patchField entry for propellerTip [0] [0] file: processor0/0/p.boundaryField at line 11 to 42.

    • @user-dx1tx8wp1w
      @user-dx1tx8wp1w 10 หลายเดือนก่อน

      Help me resolve the error

  • @morayaprabhu8223
    @morayaprabhu8223 10 หลายเดือนก่อน

    can you tell how did you get cylinder_wake.mat file or how to use a particular data set for the same?

  • @gilbertomontiel7123
    @gilbertomontiel7123 11 หลายเดือนก่อน

    Hi! Thanks for the video, this is great. I have a question, you have an input of size (100,1); then, you use nn.Linear(1,10) to perform a transformation of the data considering the weights. However, this gives a matrix of size (100,10), which will have the same size after the Sigmoid activation. How do the neurons of the hidden layers appear in this output? I cannot get the result in terms of the typical y=sum(w_ij*x_j + b_i) where i is the ith hidden unit (neuron). Are there 100*10 units in this configuration? How many weights are set for training at this point, 100 or 100*10? Thanks for your attention to this matter

  • @brandonwashington4422
    @brandonwashington4422 11 หลายเดือนก่อน

    Great video. Can this still be applied when p(x) is not zero?

  • @JamesVestal-dz5qm
    @JamesVestal-dz5qm 11 หลายเดือนก่อน

    Solving ode!

  • @JamesVestal-dz5qm
    @JamesVestal-dz5qm 11 หลายเดือนก่อน

    Large language models and chat box my dad made those two connections.

  • @TerragonCFD
    @TerragonCFD ปีที่แล้ว

    Thank you very much, this is so nice! 😃 My "Problem" is, that im using PyTorch and OpenFOAM a bit, but not used to C++ to let them "talk" to each other 😞

  • @Idtelos
    @Idtelos ปีที่แล้ว

    Thanks for sharing. Notice you model the flow around cylinder that is in the wake of another cylinder. Where the two cylinders of the same diameter? When you model step cylinders , you can get interesting results such as karman vortex shedding and other phenomena. It would defnitely be of interest if you were to apply PINNs to the CFD of other geometric shapes.

  • @janszwykowski9708
    @janszwykowski9708 ปีที่แล้ว

    عندما كنت لا أزال في المدرسة الابتدائية ، كان هناك Pawe كنت أركب دراجة التقيت به ثم ذهبت إلى الخنفساء للحصول على الآيس كريم ، وفي طريقي إلى المنزل عدت إلى المنزل

  • @debuggers_process
    @debuggers_process ปีที่แล้ว

    Excellent work! I've been delving into a similar area, albeit focused on the individual particle level. I've successfully trained a neural network to calculate particle dynamics in a single step, effectively replacing the need for 25 traditional computational substeps of Verlet integration. Interestingly, the network yields significantly more stable results compared to numeric integration when subjected to high-energy collisions. Unlike Verlet integration, the network simulation does not "explode". Have you experimented with your simulation at energy levels exceeding those used during training?

  • @evertonsantosdeandradejuni3787
    @evertonsantosdeandradejuni3787 ปีที่แล้ว

    Parabéns, lindo

  •  ปีที่แล้ว

    Nice start. Thank you for sharing!

  • @babali183
    @babali183 ปีที่แล้ว

    Hi, your video inspired me a lot, but I would like to ask you what software did you use to generate your geometry files? When I imported my generated geometry files into openfoam, snappyHexMesh will always prompt "Unknown region name ascii for surface A". I am looking forward to your reply.

    • @computational_domain
      @computational_domain ปีที่แล้ว

      The file used in this video was downloaded from the internet. In some other projects I used the CAD softwares to create geometry in .stl format, but the software does not matter. What matter is whether the geometry file was constructed correctly. Could you tell me a bit more about the OpenFoam's error? Does is say something like "Valid region names are ..." If you contact me via email (thecomputationaldomain@gmail.com) I could try to help you out with the simulation

    • @babali183
      @babali183 ปีที่แล้ว

      thank you very much, I will send the setails to you @@computational_domain

    • @afiqamir520
      @afiqamir520 5 หลายเดือนก่อน

      @@computational_domain Hi, I also have the same issue where I couldn't execute the snappyhexmesh command, while the error said that "Valid region names are 1(propellerStem)". Could you help me solve this problem?

  • @babali183
    @babali183 ปีที่แล้ว

    Which version of OPENFOAM did you use

    • @computational_domain
      @computational_domain ปีที่แล้ว

      OpenFOAM v6, but it shouldn't matter if you use a newer version

    • @babali183
      @babali183 ปีที่แล้ว

      ok,thank you

  • @surfsidecrayon0702
    @surfsidecrayon0702 ปีที่แล้ว

    Great video! How would you expand this code to encompass other situations like systems of ODE or PDE?

    • @computational_domain
      @computational_domain ปีที่แล้ว

      In case of ODEs there's only one input parameter (e.g. x), so first I would have to change the structure of NN to include more input paratemer (e.g. x and y). As for the training, typical approach is to include the initial and boundary conditions (to minimize the loss for the output values) as well as the collocation points which are used to minimize the loss of the PDE itself. I've a video in which I trained NN to predict pressure field based on the velocity field and the Navier-Stokes equation if you're interested: th-cam.com/video/ISp-hq6AH3Q/w-d-xo.html

    • @ajarivas72
      @ajarivas72 10 หลายเดือนก่อน

      @@computational_domain I am very interested in employing Neural Networks to predict pressure field based on the velocity field and the Navier-Stokes equation

  • @khursheedfaiq7956
    @khursheedfaiq7956 ปีที่แล้ว

    Dear, please let me know which software you are using in these problems?

    • @computational_domain
      @computational_domain ปีที่แล้ว

      I'm using the Jupyter notebook as the programming environment and the pytorch library for the machine learning functions

  •  ปีที่แล้ว

    Well done! Thanks.

  • @greenlightzone
    @greenlightzone ปีที่แล้ว

    You should include a link to the documentation website

  • @arupkumarsahoo209
    @arupkumarsahoo209 ปีที่แล้ว

    Exactly I am searching for why Adam is not effective. Thank you for sharing.

  • @tejasindani4898
    @tejasindani4898 ปีที่แล้ว

    How much time did it take to train using LBFGS method of optimization?

  • @jasonyoon228
    @jasonyoon228 ปีที่แล้ว

    Do you have colab link?

  • @pochotom2834
    @pochotom2834 ปีที่แล้ว

    and now, to openfoam? how do i do it?