Hi Tanmay, thank you for providing beginner friendly tutorials. It’s much understandable by this way. I can’t thank you enough. I’m grateful to find your channel!
Hi Tanmay I learning many concepts related to CFD from your video... In this you did not explain the Boundary conditions ... Can you please explain this problem with Boundary conditions..
Firstly, thank you so much for such great videos! I had one doubt in the plotting section. While defining the "y_dom", we subtract the elements from 1. Is this done because matrices in matlab are indexed from top-left, while we want the origin to be at bottom-left?
Tanmay, thank you so much for making such nice videos explaining various concepts. I am sure your videos will be very useful for beginners to advance level. Please make some videos describing the Multigrid method as well.
Hello, thank you so much for your helpful videos. It was a great explaining. I find them very useful ... I 'm just wondering if you have any lectures or videos that explain the 2D advection diffusion using finite difference. I will be very thankful if my comment has found any reply
@TanmayAgrawal7 I'm very interested in your content. I wonder if i can i find anything for transient flow for Confined and unconfined aquifer and relation with solute transport???
Thanks this is beautifully explained. Please I have solved a 2d unsteady cylindrical diffusion equation, can I ask for your kind assistance on using matlab to run the code. Am not getting the desired solutions. Thanks
Hi Tanmay, thank you for the helpful videos may i know how can i code for amplification factor for 1D explicit and forward scheme? Would be great if you'd help. Thanks
@@TanmayAgrawal7 hi Tanmay, thanks for your reply, the amplification factor is for Von Neumann stability to check bounds for stability, do you happen to have worked on it before?
Hi Tanmay. I’ m solving a 1D transient diffusion convection problem with implicit Scheme. I’m having a problem to find the result as it is on the book. I’m using Gaussian elemination. I solved the same problem with explicit scheme and the result is ok. But I have problem with the implicit scheme. Help me please.
Hello, first of all, thank you so much for explaining everything in such a detailed and easy way..Actually, I am trying to solve 2D problem in polar coordinates for the evolution of concentration through a cylindrical tube..I used the finite vol method and arrived at set of ODE but I am struggling to write the code for it.. Is there any way I can contact you to get help?
Hi Tanmay: Thank you for the video. My comment is a request: I have taken several CFD courses in the past. The problem domains were very small (5 points in a line or a 2D grid of 25 points, etc.). This was good to teach the basic concepts of CFD coding. However, I would like you to include in your course some videos on how to code a real problem, where the grid could have a couple of million cells. Obviously, we are not going to write in a couple of million boundary conditions my hand. To work on a industrial size problem, our options are: 1) Buy a commercial software package (expensive) or 2) code in OpenFoam, which is not user friendly. Note: Currently, I am learning how to use open foam. But, I would would like a 3rd option, writing my own codes in Matlab (Octave/Scilab). So my requests are: 1) Please include a discussion on using meshing software (i.e. Gmesh, etc.) and how to deal with boundary conditions of a car, a plane, fan, etc. Some recommendations on meshing software would be helpful. 2) Also, if we model a fan, pump or turbine, (anything with rotational velocity) then we have to deal with rotating boundary conditions. So, I would like you to include a discussion on how to approach these problems. In the end, because of time, I might have to buy or use a commercial CFD package. Or painstakingly learn how to run OpenFoam. However, I would like the 3rd option of writing my own codes. Note: When I was a grad, student I took a year of computational physics and I wrote my own codes in Matlab or other languages. But the problem domains were small. Now, I need to learn how to deal with large problem domains, complex geometries and difficult/many boundary conditions, etc. Thank you in advance for your help with my request. Cheers! Frank
Hi Frank, Thanks for this detailed feedback. The kind of problems you mentioned are indeed quite challenging (and are considered "complex" problems from a CFD perspective). Although not in this series, but in my parallel work on Fluent, I'll try to address some aspects of it. Since this course is an introductory part to both CFD and MATLAB, the rotational aspects are going to be hard to tackle. ANSYS Fluent offers a student version for free that you can use for upto half a million elements (if I can remember correctly). OpenFOAM has a good community though on the other hand. Personally, I haven't used it much.
@@TanmayAgrawal7 Thank you for your reply. I guess I only have two choices: 1) I will continue learning OpenFoam but 2) I have already started investigating commercial solvers. Cheers! Frank
Because in MATLAB, 0 is towards the top otherwise. If you don't do "1 - ..." Then you'll have 0 at the top and one at the bottom (which would be a little counter intuitive for Cartesian system)
Hello, Tanmay . May I ask another question? you changed the y(i-1,j) and y(i,j-1) to y_new(i-1,j) and y_new(i,j-1). what is the numerical method you call?
Hi Tanmay, Many thanks for the videos, they are really helpful. The plot figure I get is inverted in the y-direction. I have inverted it with the auxiliary y_dom1, but I don't know if it is possible to create it directly in the right way. x_dom=((1:n_points)-1)*h; y_dom=((1:n_points)-1)*h; y_dom1=dom_size-y_dom; [X,Y]=meshgrid(x_dom,y_dom); [X_1,Y_1]=meshgrid(x_dom,y_dom1); f1=figure; contourf(X,Y,y,12); colorbar; f2=figure; contourf(X_1,Y_1,y,12); colorbar; I am using the online version, I don't know if the syntax is different.
It might be different, I'm not sure. I haven't used the online version so far. Your code looks alright. See if you can get the offline version perhaps?
Great videos Great great greaaaaaaaaaaat effort I've learnt alot from you and I hope that one day I could make a video using matlab solving 2-D wave equation and I would dedicate it to you of course No words can describe my gratitude ♥
Hi Tanmay... in your code you had given boundary condition for the first row, you have not defined all the boundary conditions (Left wall, Right wall, Top wall). Please check and verify
Hi! Since they remain the same as their initial values, therefore it is not needed to re-code their values. Also for the same reason, in the FOR loop, we do not change the corresponding rows and columns.
Hi Tanmay. I’ m solving a 1D transient diffusion convection problem with implicit Scheme. I’m having a problem to find the result as it is on the book. I’m using Gaussian elemination. I solved the same problem with explicit scheme and the result is ok. But I have problem with the implicit scheme. Help me please. Could send me your e-mail or something like that so I share with you my matlab script.
Hi Tanmay, thank you for providing beginner friendly tutorials. It’s much understandable by this way. I can’t thank you enough. I’m grateful to find your channel!
Very good video Mr. Agrawal, example of Bharat teacher being exceptionally excellent as always! Namaskar from southern Brazil!
#FreeTNTemples
Namaskar 🙏
Great vedio really helpful to understand the practical application of all these equation as I am currently studying CFD in my engineering
Hi Tanmay I learning many concepts related to CFD from your video... In this you did not explain the Boundary conditions ... Can you please explain this problem with Boundary conditions..
Thank you so much for this video.Can you explain how the same equation can be solved by Alternating direction implicit method in matlab?
Boundary condition kya hai ?
Under what conditions, the solution starts to resemble a 1D behavior?
hello there, I ran the code, but the y-coordinate is appearing as 0,-0.2,....,-1 in the downward direction in the plot..???
thanks a lot brother for such interesting videos. Can you suggest from where I can practice more coding problems related to cfd?
please I want to solve fick's equation to study dialyse phenomena ? could you help me
thank you
sir after putting the same code i am not getting the countours please help me to solve the issue ..error is showing i n xdomain
Thanks for uploading FDM , please do some lectures related to LBM using MATLAB.
Sir how I contact with you. Thank you very much
why did you take err_mag =1 initially and then 0
beautifully explained the application for 2d diffusion.
can you make captions available please sir ?
Sir can you please make video on total concentration method in cfd
Firstly, thank you so much for such great videos! I had one doubt in the plotting section. While defining the "y_dom", we subtract the elements from 1. Is this done because matrices in matlab are indexed from top-left, while we want the origin to be at bottom-left?
Yes. If you don't subtract, you'll sort of see things upside down as compared to what you visualize in head. Silly MATLAB indexing!
Tanmay, thank you so much for making such nice videos explaining various concepts. I am sure your videos will be very useful for beginners to advance level. Please make some videos describing the Multigrid method as well.
That's in the plan, but not sure when they would be recorded. If you need help, you can drop me an email.
@@TanmayAgrawal7 thanks for the response. Will contact you soon.
Hello, thank you so much for your helpful videos. It was a great explaining. I find them very useful ...
I 'm just wondering if you have any lectures or videos that explain the 2D advection diffusion using finite difference. I will be very thankful if my comment has found any reply
I am not sure if that’s there on the channel yet. But I’ll upload later on in future. Thanks for watching my content.
@TanmayAgrawal7 I'm very interested in your content. I wonder if i can i find anything for transient flow for Confined and unconfined aquifer and relation with solute transport???
hi sir thnq so much your video are so helpful, can you please tell me how to do iteration on excel for same problem of cfd
Thanks this is beautifully explained. Please I have solved a 2d unsteady cylindrical diffusion equation, can I ask for your kind assistance on using matlab to run the code. Am not getting the desired solutions. Thanks
Please try to debug. Cylindrical systems are a little more painful
Hi Tanmay,
thank you for the helpful videos
may i know how can i code for amplification factor for 1D explicit and forward scheme?
Would be great if you'd help.
Thanks
What do you mean by amplification factor? Do you mean over-relaxation?
@@TanmayAgrawal7 hi Tanmay, thanks for your reply, the amplification factor is for Von Neumann stability to check bounds for stability, do you happen to have worked on it before?
sir, I found this series much helpful for me. I will wait for your next lecture
Hi Tanmay. I’ m solving a 1D transient diffusion convection problem with implicit Scheme. I’m having a problem to find the result as it is on the book. I’m using Gaussian elemination. I solved the same problem with explicit scheme and the result is ok. But I have problem with the implicit scheme. Help me please.
Hello, first of all, thank you so much for explaining everything in such a detailed and easy way..Actually, I am trying to solve 2D problem in polar coordinates for the evolution of concentration through a cylindrical tube..I used the finite vol method and arrived at set of ODE but I am struggling to write the code for it.. Is there any way I can contact you to get help?
Hi Tanmay:
Thank you for the video.
My comment is a request: I have taken several CFD courses in the past. The problem domains were very small (5 points in a line or a 2D grid of 25 points, etc.). This was good to teach the basic concepts of CFD coding. However, I would like you to include in your course some videos on how to code a real problem, where the grid could have a couple of million cells. Obviously, we are not going to write in a couple of million boundary conditions my hand.
To work on a industrial size problem, our options are: 1) Buy a commercial software package (expensive) or 2) code in OpenFoam, which is not user friendly.
Note: Currently, I am learning how to use open foam. But, I would would like a 3rd option, writing my own codes in Matlab (Octave/Scilab). So my requests are:
1) Please include a discussion on using meshing software (i.e. Gmesh, etc.) and how to deal with boundary conditions of a car, a plane, fan, etc. Some recommendations on meshing software would be helpful.
2) Also, if we model a fan, pump or turbine, (anything with rotational velocity) then we have to deal with rotating boundary conditions. So, I would like you to include a discussion on how to approach these problems.
In the end, because of time, I might have to buy or use a commercial CFD package. Or painstakingly learn how to run OpenFoam. However, I would like the 3rd option of writing my own codes.
Note: When I was a grad, student I took a year of computational physics and I wrote my own codes in Matlab or other languages. But the problem domains were small. Now, I need to learn how to deal with large problem domains, complex geometries and difficult/many boundary conditions, etc.
Thank you in advance for your help with my request.
Cheers!
Frank
Hi Frank,
Thanks for this detailed feedback. The kind of problems you mentioned are indeed quite challenging (and are considered "complex" problems from a CFD perspective). Although not in this series, but in my parallel work on Fluent, I'll try to address some aspects of it.
Since this course is an introductory part to both CFD and MATLAB, the rotational aspects are going to be hard to tackle.
ANSYS Fluent offers a student version for free that you can use for upto half a million elements (if I can remember correctly). OpenFOAM has a good community though on the other hand. Personally, I haven't used it much.
@@TanmayAgrawal7
Thank you for your reply.
I guess I only have two choices:
1) I will continue learning OpenFoam but
2) I have already started investigating commercial solvers.
Cheers!
Frank
hello, thanks for your help with this useful video, I have one qeustion, why you y_dom=1-((1:n_points)-1).*h; ? I mean why y should be be 1- ?
Because in MATLAB, 0 is towards the top otherwise. If you don't do "1 - ..." Then you'll have 0 at the top and one at the bottom (which would be a little counter intuitive for Cartesian system)
Sir how to control the number of iterations to be performed?
You can program the while loop
while iterations
@@TanmayAgrawal7 Thank you sir
Hello, Tanmay . May I ask another question? you changed the y(i-1,j) and y(i,j-1) to y_new(i-1,j) and y_new(i,j-1). what is the numerical method you call?
This is called Gauss Seidal method where we use the new values of y. If they were all old values, then we call it a Jacobi method.
@@TanmayAgrawal7 thank you very much
Hi Tanmay,
Many thanks for the videos, they are really helpful.
The plot figure I get is inverted in the y-direction. I have inverted it with the auxiliary y_dom1, but I don't know if it is possible to create it directly in the right way.
x_dom=((1:n_points)-1)*h;
y_dom=((1:n_points)-1)*h;
y_dom1=dom_size-y_dom;
[X,Y]=meshgrid(x_dom,y_dom);
[X_1,Y_1]=meshgrid(x_dom,y_dom1);
f1=figure;
contourf(X,Y,y,12);
colorbar;
f2=figure;
contourf(X_1,Y_1,y,12);
colorbar;
I am using the online version, I don't know if the syntax is different.
It might be different, I'm not sure. I haven't used the online version so far. Your code looks alright. See if you can get the offline version perhaps?
Great videos
Great great greaaaaaaaaaaat effort
I've learnt alot from you
and I hope that one day I could make a video using matlab solving 2-D wave equation and I would dedicate it to you of course
No words can describe my gratitude ♥
I can see that it's not very far when you'll create that. Let me know if you need any help :)
why are we making the top row as 1 only and other as zero?
Boundary conditions. Top row is 1 and everything else is 0.
@@TanmayAgrawal7 ok thanks a lot?
I didn't understand why you were talking about the time step although we are in steady case. As I know we talk about it only in unsteady case..
The word I should've used is iterations.
@@TanmayAgrawal7
Ah got it, thank youu so much
how do we plot at different time step
temperature*
Keep an eye out. Would be there in next lecture.
very interesting sir.
Feel free to ask questions if you have in later videos.
Hi Tanmay... in your code you had given boundary condition for the first row, you have not defined all the boundary conditions (Left wall, Right wall, Top wall). Please check and verify
Hi! Since they remain the same as their initial values, therefore it is not needed to re-code their values. Also for the same reason, in the FOR loop, we do not change the corresponding rows and columns.
Hi Tanmay. I’ m solving a 1D transient diffusion convection problem with implicit Scheme. I’m having a problem to find the result as it is on the book. I’m using Gaussian elemination. I solved the same problem with explicit scheme and the result is ok. But I have problem with the implicit scheme. Help me please.
Could send me your e-mail or something like that so I share with you my matlab script.
It's tanmayagrawal7@gmail.com
@@TanmayAgrawal7 I sent you an e-mail.
Thanks
sir i send you the 2D heat equation code please,
Today I tried 1-d transient conduction and was not able to code it....I request you to take this example in next lecture 😄
Indeed. The 2D transient problem is going to be covered in next lecture.
Bhaiya plz provide the script file in description
I've added it there. Replace (USE THE LARGER THAN SIGN HERE) with > and you're good to go.
Thanks a lot !!!
Joinha
New look, it's like CFD problem is converging 😂😂😂😂😂 kidding..
It's a converging diverging problem in that aspect 😀
H A P P Y T E A C H E R S' DAY S I R
Thank you very much brother!