← Previous lessonFree lesson 4 of 4 · lesson 4 of 41

Unlock all 41 lessons of Advanced CFD for IC Engine Applications using CONVERGEFull course ₹40,000 · paid

Price & syllabus
Free lesson · 25 min · no payment

Setting Up Run Directories and Running CONVERGE Cases from Cygwin

A free lesson from Skill-Lync's Advanced CFD for IC Engine Applications using CONVERGE course, on Grow by Skill-Lync · Last updated 16 Nov 2026 · Session: “Setting Up Directories and File Management for Simulations”

What will you learn in this free Advanced CFD for IC Engine Applications using CONVERGE lesson?

The instructor shows how to launch Cygwin as administrator, use pwd, cd and ls to navigate, and create a CONVERGE runs folder outside the C drive with a subfolder for the channel flow case. It also explains the processor count in the run command for parallel processing and which MPI executable to use.

  • Basic Cygwin commands: pwd, cd and ls
  • Creating an organized folder for each simulation case
  • Serial versus parallel runs and the processor count
  • Using the MPI executable from the CONVERGE folder

What comes after lesson 4?

Later in Skill-Lync's Advanced CFD for IC Engine Applications using CONVERGE course (paid): lesson 5, Setting Up and Simulating a Simple Flow Problem in Converge Studio; lesson 6, Laminar Flow Simulation Setup; lesson 7, Setting Up a Case in CONVERGE Version 3.2. The full course has 41 lessons (12 h 42 min of video); see the course overview or its price and syllabus.

Lesson transcript

Machine transcript of the lesson audio (lightly cleaned). Technical terms may contain errors; the video is the reference.

Right. So let me first open Sigwin for you guys. So Sigwin is nothing but the command line window, which I told you already. So you have to always open or launch Sigwin using run as administrator. Always. Whenever you will be launching Sigwin, make sure you are launching using run as administrator in the administrative mode. Click on this. It will ask this. Okay. Click on yes. Now we will be able to see this black window. So on this, you have paid all the commands. Right. So now this is already shown in video how to navigate to different directories and all those things. So whenever you want to run simulation, you have to change the directory because if you take PWD and hit enter, so it will tell you PWD stands for present working directory. Right. So it will tell you that presently you are in which directory. So you are in user directory under home. So you want to go inside the C folder.

You want to go to the D folder. You want to go to the D folder. So you have to use CD, which means change directory D colon and hit enter. Now if you want to see what all things are present inside the D directory, you have to take LS and hit enter. It will list out all the things which is present under the D directory. Now you have manually created a folder called converge runs. Right. And which you should do. Right. So what you have to do is before you start to run any simulation, what you have to do is you have to go to C, D, E, whatever directory you want. Don't choose C directory. Apart from C directory, choose any other directory.

So you came into D directory. So what you have to do first thing is you have to create a new folder, create a new folder with the name converge, right? Hit enter. Now inside this folder, what you will do is you will create a sub folders. Now first challenge is on channel flow. So you create a folder, you will say channel flow, you have to create this folders manually. Okay, you have created channel flow and inside this folder, you have to export all the input files. This term you will not understand now. But when you start watching videos and when these terms are getting used, you will understand what I'm telling here.

Right. So what I'm trying to explain you is, whatever the challenges and projects you will be doing, it should be under the same folder converge. Now inside another challenges backward facing. So create another folder backward facing backward facing step. Let's say another challenges throttle flow. So you have to I'm just creating it now because I know all the challenges. Right. So you don't have to create it on the very first day when you're doing you have to create as and when you are going to attend those challenges.

So like this, each and every challenge will be in a proper order and you will be having everything under the same roof so that in future after three or four months when you want to see that, okay, I want to check what I did in channel flow. So you directly come to converge folder in that you can directly go to channel flow. Right. If you are one simulation, you are, you know, saving it in e folder, some in under conversions folder, some under converge folder, it will be a mess for you. Correct.

So don't get confused. Because in the video, we have shown a converge underscore runs. So that is a folder which we created manually like I showed you here. So that name you can give anything. Correct. So here I gave a conversion. I can also give conversion underscore runs. And inside this folder, I will have the sub folders for each and every challenge. And I will be exporting the input files of particular challenge inside the particular folder. Say if I'm doing channel flow, I will be exporting all the input files under the channel flow folder. Let's say if I'm doing backward facing step, I will create a new folder called backward facing step folder.

I will not export in channel flow. Right. It makes sense. But a lot of people make this mistake. That's why I am iterating this thing again and again. And if you are doing throttle flow, then you will create a new folder called throttle flow. And then all the input files you'll be exporting into the throttle flow, which are related to the throttle flow. Right. All right. So this is the first thing you have to do before you start with any challenge or before you start with practicing because for practicing also you need to create a folder and you have to run the things. Correct. So like this, you have done one thing for the practice, then you are doing channel flow. So create another folder so that everything is organized. Right. Now you understood what I'm trying to say here. So I will not stretch this a lot. But I hope you understood this point pretty much.

Clearly, but still, if you have any doubts, you can definitely ask your support engineers, he will be happy to help you out. Right. So this is the first thing which you have to do. And exactly. Now, since one thing to understand here, okay, whenever you want to run any simulation that you want to run channel for simulation, which is set up in Converge. So after setting up the channel flow problem in Converge, you will be exporting the input files into the channel flow folder. Correct. So now you have to run the simulation. So now you have to run the simulation. You have to run the simulation. You have to come to sigwin. And once you come to sigwin, you have to navigate to this folder channel flow.

So if you are not navigating to this folder, if you are not navigating to this folder, and you are directly, you know, running this, you are directly using the command to run the simulation, it will not run the simulation, because that command will not find those input files, which it needs to run the simulation. Correct. So let's say if you have created a folder called channel flow inside the D directory, directory, and all the input files are under channel flow, and you are running the, you know, simulation of using the command to run the simulation in that C directory, right, it will say that this particular thing, it was not able to find the input files, definitely will get this error.

So to avoid those kinds of error, what you have to do is you have to navigate to that particular directory. So let's say you have a folder in D. So you have to write this command CD space D colon, it means change directory to D. Presently, it was at home users. So from home user, you'll change the directory to D. And inside D, what all things are there, if you want to see you have to take LS, LS stands for list. So it will list out all the folders which are present inside the D directory. So you have created a converge folder right inside the D folder. So now inside the D directory, you will be able to see the converge folder if I am not wrong, right. So if you want to see that you have to go through this.

All right, and you can find it out somewhere here. Right. So since here, you are not able to see converge because I don't segment and after launching segment, I created a folder. So this will not work. It has to be refreshed. So to refresh, one easy way is to close the segment and again launch it. And let's say if you don't want to do that, then what you do is you can go one level up and then come back into the D directory. So how to go one level back. Presently, you are inside the D directory. Now what I will do is if I do change directory dot dot, what it will do, it will take me one step up or one step back. Okay, and if I hit enter, now if I type LS, it will say that in which directory you want to go CDEFG.

Now if I go, now again, I want to go back to D right because I want to refresh it. So I refreshed it. Now if I go again back to C directory to change directory CDEFG and hit enter. And now if I type if I want to see what are all the folders inside D directory, I will type what LS. Now hit enter. So now if I see I will be able to get conversion. Can you see this conversion? Previously, you were not getting now I'm getting conversion.

So now my channel flow folder is inside the conversion folder. So again, I have to go inside the conversion to go inside the conversion folder means I'm I have to again change the directory. So I will what I will do CD what I will do type conversion. Right. So let's see if you while you know giving the name to the folders and all some might use capital C O and V R G anything like that. Right. So what you can do is if you don't want to write a big names, what you can do is you can type CD space C and hit tab, it will auto complete. Right. And now hit enter.

Now you are into the conversion directory. Now you should type LS, it will list all the things which are inside the conversion folder. So what are the things are inside the conversion folder? Can you guys guess you can see here inside the conversion folder, you have three subfolders, which is backward facing step channel flow and throttle flow. So if you do this, I am I should be able to see three subfolders. I'm able to see three folders. Correct. Now, let's say if you want to go inside the channel, because all the input files are exported from the converse studio inside the channel flow. Right. So I have to again use what if I want to go inside the channel for what I have to do CD, and I will type C and what I will do, I will try to hit that if it works.

It worked. And now I will hit enter. So now I am inside the channel flow folder, where you should be there in order to run the channel flow simulation. Now if I hit LS, it will list out all the things which are inside the channel flow. Now it is not showing anything because there is nothing inside the channel flow. Right. Its folder is empty. But when you export all the input files from the converse studio inside the channel flow. This is what happens when time check into the production flow.

There will be 8 to 10 files which will get dumped here and when you type ls here after getting navigated to the d folder and inside the channel folder, you will be able to see all those 10 files like you see all these 3 files here, correct? Right, so now once you are inside this folder, now you have to write a command to run your simulation. The command goes like this, mpi exec.exe space hyphen n space for space quotes and now inside this quotes, you will copy paste the path for the executable.

So executable is nothing but it is a solver which will basically run your simulation. So what is the executable? Let me take you to the folder where the executable is residing. So you have to go into the C folder inside that you have to go into the program files inside that conversion science folder inside that converge folder inside 3.0.12 bin. And now this converge hyphen intel mpi.exe is your executable. This is basically going to run your simulation. This is a kind of solver. Now you have to copy the path.

So how you will be copying the path from here? It's very much easy. You have to click somewhere in this rectangle box. If you click the path will get highlighted in blue, right? So but this is not the complete path. What you have to do is you want executable, right? So just click once more, just click one more time on that, on the same rectangle box and then hit backward slash or backslash and then type CO and then it will automatically pop up converge hyphen intel mpi dot exe.

Now click on this one window will pop up like this. You don't have to worry. Just click on just close this window and again click on this rectangle box and then you will get the entire path and now this path you have to basically copy. So right click, right click, copy. And now we'll come back to segment window and then you have to just right click and paste control. We will not work here and now close the codes space restricted space Deb null lock and person.

So basically this is the entire command which will be using throughout the coursework to run any simulation, right? So your cell count for any case should not go beyond 0.5 million, which is 500,000 cells, right? If it is going beyond that your simulation will crash because the license which we are providing you is only to handle 500,000 cell count. Okay, so that's why you are writing restricted in it. If you can see here, that's why this is the reason you're writing restricted. And what this additional thing is all about correct this thing.

So this is nothing but a command to dump a log file. What is a log file? So log file is nothing but which will keep a log of everything. So whatever is happening on the screen here, the same thing will get dumped into a log file. So let's say if your simulation is crashing at some point, and you are not getting a error message that why your simulation has crashed right on the screen, then if you have a log file, you can open the log file using notepad or notepad plus plus, and you can go through the log file at the bottom, there will be an error message.

So it's always a good practice to have a log file for any simulation you're running. So make this as a habit from day one, right? So what only thing which you have to do is you have to follow this command to run any simulation. That's it. Later, you will understand in much better way and with much more clarity, what this command is like, what is n what is for what is, you know, log file, all the things will get clear. slowly, slowly, but you will definitely but in in a very brief manner, four is here the four you're seeing is nothing but the number of processors, right on which you want your simulation to run.

So it is for the parallel processing. So if you're using only one processor, it means you are doing a serial processing. And if you're running your simulation on more than one processor, it is parallel processing. Right? So parallel processing, if a load is distributed among four people, right? The work will get done faster, right? And if you're giving the same work to a single processor, it will take a lot of time, right? So this is what n represents and is number of processes and the number following it will be the number of processes used to run a particular simulation.

So this is one command which you have to basically use throughout your coursework. And another commands which you will be using, which might be handy while running the simulation. So one more thing in this command is and so what is this ampersand, correct? So this ampersand indicates that your simulation will run in the background, meaning whatever the let's say if you don't use ampersand, then you will be able to see all the output on the black screen. Right? And you will not be able to do any other task if you want to do.

Now let's say if you're including ampersand, the job will be submitted and it will be running at the background. So that if you want to do something else, if you want to navigate to some other another directory and if you want to look for any other files, right, then you can do those things. But if you're not running the job in the background and your job and you're able to see all the output on the screen, then you will not be able to do all those things.

So let's say if you're running a job in the background, which is preferable. So now how will you come to know that your simulation where your simulation has reached or whether your simulation is finished or not, correct? So there is a separate command to check that as well. So what is that come? So let me delete this command for now. Correct? Okay. So this is the one more usage of lock file you'll come to know over it. So let's say you submitted your job and it is running in the background because you use the ampersand after the whole command.

So now if you want to check, let's say after 20 minutes, you want to check that whether your simulation is finished or not, what will type is tail minus 10 log file, right? So the log file which you have done in that all the screen output is getting down, correct? So now when you write tail minus 10 log file, what it will do is it will show the last 10 lines of the log file. So this way you will understand that, okay, till what point or till what time my simulation has reached, and let's say the simulation is finished, then you will be able to see the summary of the time, correct?

So you will understand, okay, now somebody has come, it means my simulation is finished. So and another thing, let's say if you have submitted your job at the background, and now you decided that, okay, I want to see everything on the screen as well. So what you can do is, you can basically, instead of 10, you can, so if you put 20, it will show last 20 lines, if you put 30, it will show last 30 lines, right? So general practices last 10 lines, because there is no need of looking at the last 30 lines, right?

You just want to see whether your simulation is finished or not, or until what time it has reached. So last 10 lines are sufficient. So let's say if you want to look at a continuous data on the black screen, then you what you have to do is basically you have to take tail minus f, tail minus f log file, it will start dumping all the output on the black screen. So this is the second command and use usage of log file, right? And one last thing, which I want to basically talk about is about one error, right, which almost everyone, like majority of the population will face.

And that error is this, let me take that. So the error will be unable to decode host port from this following number. And the output will look something like this, right? You can see this right black screen. So if anyone of you is getting such kind of error, the simplest thing which you have to do here is the only one reason why you're getting this error, which is your MPI, basically this thing, right? When you set your environmental variables, there is one Microsoft MPI and another is convergence science folder, right?

So in the both the folder, there is a file called MPI exe c dot exe. Now since you are running converge simulations, you need MPI exe c dot exe file from convergence science folder and not from the Microsoft MPI folder. So to give you the better clarity, let me. The C drive program files. So here, if you can see, there is a Microsoft MPI folder and Conversion Science folder. So if I click on Microsoft MPI, if I go into bin, there is a MPI exec file. And also, if I go into Conversion Science folder, Converge 3.0.1 bin, MPI, Intel 64 bin, and here also, you will be able to see MPI exec.

exe.exe. But now we have to decide, right, which one to take. Both are different. Okay. So if you're running a simulation and buying a stake, if a solver is picking, instead of picking this MPI exec.exe, it is picking from the Microsoft MPI folder, it will throw this particular error, which is nothing but enable to decode or host code from this. Correct. So what you have to do is just you have to go, you have to right click on this PC, go to properties, go to advanced system settings, go to environmental variables. Now in this under the system variables, right, you have to go to the path, which is here, double click on it. And now here, you will see lot of paths. So basically, why you were getting or anyone who is getting the error is, you're in this Microsoft MPI bin, right, this thing, this might be above all the converge for paths. So let's say if I move up this. Yeah, so in your case, this Microsoft MPI slash bin will be at the first place. And after that, there will be conversion signs paths.

So that's why what solver is doing is when you're running a simulation, it is seeing this path. And since it found this path. First, it will pick up the MPI exec.exe from this particular path. And it will try to run, but it will throw an error because that particular executable is not from the conversion science folder, but it is from the Microsoft MPI. So now what is the easy thing to do? Just bring this path below all the conversion signs. Paths, right? So just you have to click on move down here, you can see here the tab, right? Move down, move up. So you have to just click move down and bring this path all the now and keep it after all conversion science paths. So these are all conversion science paths. Okay. So let's say key till this point, you have the conversion science path. After this path, you can put Microsoft MPI, right? Microsoft MPI bin path. Now if you click OK, click OK, click OK, make sure you click on three OKs. If you are just clicking on close, it will not get a refresh. Okay. Or it will not get saved. You want to save the settings which you have done. You have to click on OK. And then finally, you can close this window.

And then a relaunch sigwin. Relaunch sigwin means again, just close this. And again, you have to go to sigwin. Right click and run as administrator. Yes. And then you can navigate to your directory in which you have exported all the input files by CD. And all those things, which I have already discussed in this lecture, right? Previously. So after navigating to the correct path, just use the command, which I just showed MPI XCC dot XC space icon in for that path. Correct. Okay, I need to work in copy, but I will not show that again, because I've already shown. So copy that, then restricted dev null log file and ampersand. Correct. And it will start running. And this error will go away.

And also, we have written an article on this, right? So if you still have any doubts, you can come here and take a look. The link to an article will be provided below the videos. So you don't have to worry any error or any issues if you are facing while setting up or running the case, make sure you scroll down a bit below the video, there will be links to an article for the mostly we have covered all the errors while setting up the case and while running the case, right mostly.

So there is always an area or room for an improvement. But mostly till now, whatever we have come across, we have written an article or created a video on that. So nothing to worry about. What just what you have to do is you just have to scroll down a bit below the video, there will be links to an article, right? And if you don't find those links, you can directly contact us and we will be happy to help you out. Correct. So with that, I would like to conclude this video. Thank you guys.

Want the rest of Advanced CFD for IC Engine Applications using CONVERGE?

Get the full course syllabus and fees.

The full course is paid (₹40,000). We'll send the syllabus and call you back within one working day.

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.

Full course · paid

Unlock the full Advanced CFD for IC Engine Applications using CONVERGE course

The remaining 37 lessons, mentor-reviewed projects and a certificate come with the paid course (₹40,000). Leave your details: we'll send the syllabus and fees and call you back.

Get the syllabus and fees

A counsellor calls you back within one working day.

By submitting you agree to our Terms and Privacy Policy.

Grow by Skill-Lync · free lesson

Start watching

Free, no payment. Leave your details once and every free lesson on Grow plays straight away. A Skill-Lync counsellor may call you about the full Advanced CFD for IC Engine Applications using CONVERGE course.

By submitting you agree to our Terms and Privacy Policy.

Talk to a career counsellor

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.