Thursday, 13 December 2018

Logical operators in SCILAB

Logical operators :

Logical operators are used to check conditions before the operation is being performed. 

*For example, you want to display word "Hello", when variable 'a' is less than 5 and variable 'b' is greater than 3,
                        
                        so you can simply write

                        if a>5 & b>3 then
                           disp("Hello")
                        end  

likewise all other operators can be used according to the need, that we will see in next tutorials.

Some commonly used logical operators are shown below :

For detailed explanation, you can watch below video :

Conditional operators in SCILAB

Conditional operators :

Conditional operators are used to break the loop of solution. 

*For example, you want to display word "Hello", when variable 'a' is less than 5,
                        so you can simply write

                        if a>5 then
                           disp("Hello")
                        end  

likewise all other operators can be used according to the need, that we will see in next tutorials.

Some commonly used conditional operators are shown below :

For detailed explanation, you can watch below video :

Wednesday, 12 December 2018

SCILAB TUTORIAL || Temperature distribution within a 2D plate subjected to constant temperatures at four walls

           ➤DIAGRAM :

           BOUNDARY CONDITIONS :

Left wall                                                       :  Any temperature (℃)
Bottom wall                                                 :  Any temperature (℃)
Right wall                                                     :  Any temperature (℃)
Top wall                                                        :  Any temperature (℃)

SCILAB CODE :

                    clc
                    disp("********2D CONSTANT WALL TEMPERATURE PROBLEM********")

                    disp("GEOMETRIC DETAILS")
                    L=input("Domain Length (in m):")
                    H=input("Domain Height (in m):")

                    disp("GRID DETAILS")
                    Nx=input("No. of divisions in X direction   :")
                    Ny=input("No. of divisions in Y direction   :")

                    dx=L/Nx
                    dy=H/Ny
                    m=(dx/dy)

                    disp("DOMAIN PROPERTIES")
                    K=input("Enter the thermal conductivity of plate material (in W/mK) :")

                    disp("BOUNDARY CONDITIONS")
                    Tl=input("Enter the left wall temperature (in Degree C)          :")
                    Tb=input("Enter the bottom wall temperature (in Degree C)        :")
                    Tr=input("Enter the right wall temperature (in Degree C)         :")
                    Tt=input("Enter the top wall temperature (in Degree C)           :")
                    Ta=input("Enter the ambient temperature (in Degree C)            :")

                    n=input("Enter the number of iterations                   :")

                    //***INITIAL TEMPERATURE OF DOMAIN***//
                    T=Ta*ones(Nx+1,Ny+1)

                    //***LEFT WALL TEMPERATURE***//
                   for j=2:1:Ny
                      T(1,j)=Tl
                   end

                   //***LEFT BOTTOM TEMPERATURE***// 
                  for i=2:1:Nx
                     T(i,1)=Tb
                  end

                  //***LEFT RIGHT TEMPERATURE***//
                 for j=2:1:Ny
                    T(Nx+1,j)=Tr
                 end

                 //***LEFT TOP TEMPERATURE***//
                 for i=2:1:Nx
                    T(i,Ny+1)=Tt
                 end

                 //***CORNER POINT TEMPERATURES***//
                T(1,1)=(Tl+Tb)/2
                T(Nx+1,1)=(Tr+Tb)/2
                T(Nx+1,Ny+1)=(Tr+Tt)/2
                T(1,Ny+1)=(Tl+Tt)/2

                 //***TEMPERATURE DISTRIBUTION IN INTERIOR POINTS***//
                for k=1:1:n
                   for j=2:1:Ny
                      for i=2:1:Nx
                         T(i,j)=(T(i+1,j)+T(i-1,j)+(m^2)*(T(i,j+1)+T(i,j-1)))/(2*(1+m^2))
                      end
                   end
                end

                //***PLOTTING CONTOUR FOR TEMPERATURE DISTRIBUTION***//
               Tmax=0
               Tmin=0
               xp=0:dx:L
               yp=0:dy:H
               for j=1:1:Ny+1
                  for i=1:1:Nx+1
                     if T(i,j)<Tmin then
                        Tmin=T(i,j)
                     end
                     if T(i,j)>Tmax then
                        Tmax=T(i,j)
                     end
                  end
               end

               clf()
               f=gcf();
               f.color_map=jetcolormap(64);
               colorbar(Tmin,Tmax)
               Sgrayplot(xp,yp,T,strf="041")

              //***TEMPERATURE DISTRIBUTION AT HORIZONTAL MID LINE***//
              xset('window',1)
              plot2d(xp,T(:,(Ny/2)+1))

              //***TEMPERATURE DISTRIBUTION AT VERTICAL MID LINE***//
              xset('window',2)
              plot2d(yp,T((Nx/2)+1,:))
              disp(T)

              //***END***//


          CONSIDER :
          
          No. of divisions in x & y directions : 100
          Thermal conductivity of plate material : 237 W/mK
          No. of iterations : 1000

         RESULT :
         
         For Tl=100
               Tb=Tr=Tt=25


Tuesday, 11 December 2018

Arithmatic operators in SCILAB

Operators are mainly classified as: 1. Arithmetic operators
                                                                2. Conditional operators
                                                                3. Logical operators 

Arithmetic operators :

Arithmetic operators are used to perform various arithmetic operations between two or more variables. 

Some commonly used arithmetic variables are shown below :

For detailed explanation, you can watch below video :

          

Pre-defined variables in SCILAB

Variables are mainly classified as : 1. Pre-defined variables
                                                               2. User defined variables

Pre-defined variables :

Pre-defined variables are the variables which are defined by the software itself, so one need not to define those variables.

The values are assigned to these pre-defined variables and you have to directly call these variables while making the code.

Some of the pre-defined variables are given below : 


For detailed explanation, you can watch this video :

             

System requirements for SCILAB



1.OS (Operating System):
     
  • Windows 7/8/8.1/10 (32 and 64 bits)
  • GNU/Linux (32 and 64 bits)
  • Mac

2. Hardware :

  • 2 GB RAM (1 GB minimum)
  • 550 MB hard disk space


*In case of Mac OS java 8 is needed.

*Optional :
  • An Internet connection for ATOMS modules install (using a proxy requires manual configuration of ATOMS)
  • A C compiler (gcc/clang) for C or C++ external modules compilation and for Modelica use in Xcos
  • A Fortran compiler (gfortran) for Fortran external modules compilation

Monday, 3 December 2018

How to install ANSYS ?

Hello everyone,

Here we will see, how to install  ANSYS  on windows 8/8.1/10 step by step.

So now, let us begin it.


             

How to download and install EES (Engineering Equation Solver) on windows?

Hello everyone, let us see how to download and install Engineering Equation Solver on windows?


             

How to download and install GNU plot ?

Hello everyone,
In this video we will see how to download and install GNU plot on windows platform.

Let's start...


             

How to install MATLAB on windows ?

Hello everyone,

Here we will see, how to install MATLAB on windows 8/8.1/10 step by step.

So now, let us begin it.


              

Sunday, 19 August 2018

Engineering Equation Solver

Engineering Equation Solver (EES) is software used for solution of systems of non-linear equations. 

It provides many useful specialized functions and equations for the solution of thermodynamics and heat transfer problems, making it a useful and widely used program for mechanical engineers working in these fields. 

EES stores thermodynamic properties, which eliminates iterative problem solving by hand through the use of code that calls properties at the specified thermodynamic properties. 

Download link :


http://clearload.bid/-28370OLCE/4jr4?rndad=3415811026-1534257975

Here you can find the procedure to install EES on windows platform.


           

Wednesday, 20 June 2018

BEST reference books for Mechanical Engineering.

Here we will see the best reference books for Mechanical Engineering students to get knowledge from basic concepts.
This will also help you to crack exams like GATE, IES, PSUs, ISRO, SSC JE, RRB etc.
You can buy these books by just clicking on the BUY ON AMAZON button near to the corresponding book.

1. Engineering Thermodynamics
    by P. K. Nag

















2. Mechanics of Materials
by Punmia and Jain


3. Machine Design
by V. B. Bhandari


4. Fluid Mechanics
by R. K. Bansal


5. Theory of Machines
by S. S. Rattan


6. Production Technology
by Ghosh and Mallik


7. Industrial Engineering
by O. P. Khanna

                            

8. Engineering Mathematics
by B. S. Grewal



Friday, 13 April 2018

How to install SOLIDWORKS 2016 ?

Hello everyone,

Here we will see, how to install SOLIDWORKS 2016 on windows 8/8.1/10 step by step.

So now, let us begin it.