Difference between revisions of "Fahim Adi Pratama"

From ccitonlinewiki
Jump to: navigation, search
(Design and Optimization of Pressurized Hydrogen Storage System)
(Final Report Design & Optimization of pressurized Hydrogen Storage)
Line 59: Line 59:
 
After performing numerical calculations, we have obtained results regarding the optimization of the design of a pressurized hydrogen storage. We used an approach to determine the optimal size of a tank that can hold 1L of hydrogen at a pressure of 8 bar, with a cost of less than Rp500,000. We initiated the calculation by seeking the optimal dimensions for the tank.
 
After performing numerical calculations, we have obtained results regarding the optimization of the design of a pressurized hydrogen storage. We used an approach to determine the optimal size of a tank that can hold 1L of hydrogen at a pressure of 8 bar, with a cost of less than Rp500,000. We initiated the calculation by seeking the optimal dimensions for the tank.
  
'''Formula'''
+
 
 +
== '''Formula''' ==
 +
 
  
 
[[File:Ta1.png]]
 
[[File:Ta1.png]]
Line 65: Line 67:
 
Formulas related to tubes are used to calculate various important parameters and properties, such as volume, surface area, and storage capacity. Here are some commonly used formulas in the context of tubes:
 
Formulas related to tubes are used to calculate various important parameters and properties, such as volume, surface area, and storage capacity. Here are some commonly used formulas in the context of tubes:
  
Volume of a Tube: The volume of a tube can be calculated using the formula:
+
'''Volume of a Tube''' : The volume of a tube can be calculated using the formula: Volume = π*r^2*h
Volume = π*r^2*h
 
 
where π (pi) is a mathematical constant that is almost equal to 3.14159, r is the radius of the tube, and h is the height of the tube.
 
where π (pi) is a mathematical constant that is almost equal to 3.14159, r is the radius of the tube, and h is the height of the tube.
  
Surface Area of a Tube: The surface area of a tube can be calculated using the formula:
+
'''Surface Area of a Tube''': The surface area of a tube can be calculated using the formula: Surface Area = 2*π*r^2 + 2*π*r*h
Surface Area = 2*π*r^2 + 2*π*r*h
 
 
This formula takes into account the base surface area and side surface area of the tube.
 
This formula takes into account the base surface area and side surface area of the tube.
  
Storage Capacity: The storage capacity of the tube, in this case the maximum volume that the tube can hold, can also be calculated using the volume formula mentioned above.
+
'''Storage Capacity''': The storage capacity of the tube, in this case the maximum volume that the tube can hold, can also be calculated using the volume formula mentioned above.
  
Volume of Gas in a Tube: If the pressure and temperature of the gas inside the tube are known, then the volume of gas in the tube can be calculated using the Ideal Gas Law:
+
'''Volume of Gas in a Tube''': If the pressure and temperature of the gas inside the tube are known, then the volume of gas in the tube can be calculated using the Ideal Gas Law: Volume Gas = (n*R*T)/P
VolumeGas = (n*R*T)/P
 
 
where n is the number of moles of the gas, R is the general gas constant, T is the temperature of the gas in kelvin, and P is the pressure of the gas.
 
where n is the number of moles of the gas, R is the general gas constant, T is the temperature of the gas in kelvin, and P is the pressure of the gas.
  
Number of Moles of Gas: The number of moles of gas in a tube can be calculated using the formula:
+
'''Number of Moles of Gas''' : The number of moles of gas in a tube can be calculated using the formula: n = (m)/(M)
n = (m)/(M)
 
 
where m is the mass of the gas in grams and M is the molar mass of the gas.
 
where m is the mass of the gas in grams and M is the molar mass of the gas.
  
Mass of Gas: The mass of the gas in the tube can be calculated using the formula:
+
'''Mass of Gas''': The mass of the gas in the tube can be calculated using the formula: m = n*M
m = n*M
 
 
where n is the number of moles of gas and M is the molar mass of gas.
 
where n is the number of moles of gas and M is the molar mass of gas.
  
Line 90: Line 87:
  
  
'''Calculation''' :
 
  
def calculate_volume(radius, height):
+
== '''Calculation''' : ==
    volume = math.pi * radius**2 * height
 
    return volume
 
  
def calculate_surface_area(radius, height):
 
    base_area = math.pi * radius**2
 
    lateral_area = 2 * math.pi * radius * height
 
    surface_area = 2 * base_area + lateral_area
 
    return surface_area
 
  
def find_optimal_design(target_volume, target_pressure, target_cost):
+
'''1. Thickness'''
    max_radius = 10.0  # Maximum radius limit
 
    max_height = 20.0  # Maximum height limit
 
    max_cost = 500000.0  # Maximum cost limit
 
  
    best_radius = None
+
def calculate_thickness(volume, pressure):
    best_height = None
+
  hydrogen_density = 0.08988  # kg/m^3 (density of hydrogen gas at room temperature)
    best_surface_area = float('inf')  # Set initial best surface area to infinity
+
  molar_mass_h2 = 2.016  # g/mol (molar mass of hydrogen gas)
 +
  avogadro_constant = 6.02214076e23  # mol^(-1) (Avogadro constant)
 +
  boltzmann_constant = 1.380649e-23  # J/K (Boltzmann constant)
 +
  temperature = 298.15 # K (room temperature)
 +
 
 +
  liter_to_m3 = 0.001
 +
  bar_to_pa = 100000
  
    for radius in range(1, int(max_radius)+1):
+
  volume_m3 = volume * liter_to_m3
        for height in range(1, int(max_height)+1):
+
  pressure_pa = pressure * bar_to_pa
            volume = calculate_volume(radius, height)
+
 
            cost = volume * target_pressure  # Assuming cost is proportional to volume and pressure
+
  num_moles = (pressure_pa * volume_m3) / (boltzmann_constant * temperature)
            surface_area = calculate_surface_area(radius, height)
+
 
           
+
  mass_hydrogen_kg = num_moles * molar_mass_h2 / 1000
            if volume >= target_volume and cost <= target_cost and cost <= max_cost:
+
 
                if surface_area < best_surface_area:
+
  surface_area_m2 = mass_hydrogen_kg / hydrogen_density
                    best_radius = radius
+
 
                    best_height = height
+
  radius = math.sqrt(surface_area_m2 / (4 * math.pi))
                    best_surface_area = surface_area
+
 
 +
  safety_factor = 1.5
 +
  thickness_mm = safety_factor * radius * 1000
 +
 
 +
  return thickness_mm
  
    return best_radius, best_height, best_surface_area
+
capacity_liters = 1
 +
pressure_bar = 8
  
# Example usage
+
thickness = calculate_thickness(capacity_liters, pressure_bar)
target_volume = 1.0  # Target volume (1L)
+
print(f"The optimized thickness of the stainless steel hydrogen storage is approximately {thickness} mm.")
target_pressure = 8.0  # Target pressure (8 bar)
 
target_cost = 500000.0  # Maximum cost (Rp500,000)
 
  
best_radius, best_height, best_surface_area = find_optimal_design(target_volume, target_pressure, target_cost)
+
Optimized thickness: 0.1 mm
  
if best_radius is not None and best_height is not None:
 
    print("Optimal Design:")
 
    print("Radius: {:.2f}".format(best_radius))
 
    print("Height: {:.2f}".format(best_height))
 
    print("Surface Area: {:.2f}".format(best_surface_area))
 
else:
 
    print("No feasible solution found within the given constraints.")
 
  
In the above code, we use the calculate_surface_area function to calculate the surface area of the tube based on the given radius and height. Then, we change the implementation of find_optimal_design to find the solution with the lowest surface area that satisfies all the constraints.
+
'''2. Height and Diameter'''
  
After finding a solution that satisfies the constraints, we print the optimal radius, height, and surface area of the tube. If no solution satisfies the given constraints, we print a message that a solution satisfying the constraints was not found.
+
def calculate_surface_area(radius, height):
 
+
  base_area = math.pi * radius**2
Make sure to customize the code according to the needs and assumptions that suit your case.
+
  lateral_area = 2 * math.pi * radius * height
 +
  surface_area = 2 * base_area + lateral_area
 +
  return surface_area
 +
def find_optimal_dimensions(volume, pressure, tensile_strength):
 +
  volume_cm3 = volume
 +
  pressure_pa = pressure * 100000
 +
  optimal_radius = None
 +
  optimal_height = None
 +
  min_surface_area = float('inf')
 +
  for radius in range(1, int(math.sqrt(volume_cm3 / math.pi)) + 1):
 +
      height = volume_cm3 / (math.pi * radius**2)
 +
      surface_area = calculate_surface_area(radius, height)
 +
      if surface_area < min_surface_area:
 +
          min_surface_area = surface_area
 +
          optimal_radius = radius
 +
          optimal_height = height
 +
  optimal_radius_cm = optimal_radius
 +
  return optimal_radius_cm, optimal_height
 +
volume = 1000  # 1 liter = 1000 mL
 +
pressure = 8  # bar
 +
tensile_strength = 600  # MPa
 +
optimal_radius_cm, optimal_height = find_optimal_dimensions(volume, pressure, tensile_strength)
 +
print(f"Dimensi yang menghasilkan luas permukaan terendah untuk tabung 1 liter dengan tekanan 8 bar:")
 +
print(f"Radius: {optimal_radius_cm} cm")
 +
print(f"Tinggi: {optimal_height} cm")
  
'''Determine the storage used for hydrogen
 
'''
 
so,we need to know the specific cost and capacity values for the storage system. Without this information, I can provide you with an example code that demonstrates how you can perform calculations based on cost and capacity inputs.
 
  
target_volume = 1.0  # Target volume (1L)
+
Dimensions that result in the lowest surface area for a 1 liter tube at 8 bar pressure: Radius: 5 cm Height: 12.732395447351626 cm
target_pressure = 8.0  # Target pressure (8 bar)
 
target_cost = 500000.0  # Maximum cost (Rp500,000)
 
nitrogen_density = 0.808 # Nitrogen density in kg/L
 
  
# Menghitung volume nitrogen dengan asumsi tangki nitrogen memiliki volume yang sama dengan tangki hidrogen
 
nitrogen_volume = target_volume  # Menggunakan volume hidrogen sebagai estimasi
 
  
# Menghitung massa nitrogen berdasarkan volume dan densitas
+
'''3.Surface Area'''
nitrogen_mass = nitrogen_volume * nitrogen_density
 
  
# Mencetak hasil kapasitas tangki nitrogen yang dipilih
+
def calculate_surface_area(height, diameter, thickness):
print("Kapasitas tangki nitrogen yang dipilih:")
+
 
print("Massa Nitrogen: {:.2f} kg".format(nitrogen_mass))
+
  mm_to_m = 0.001
print("Volume Nitrogen: {:.2f} L".format(nitrogen_volume))
+
  height_m = height * mm_to_m
 +
  diameter_m = diameter * mm_to_m
 +
  thickness_m = thickness * mm_to_m
 +
  radius = diameter_m / 2
 +
  external_area = 2 * math.pi * radius * (height_m + thickness_m)
 +
  internal_area = 2 * math.pi * (radius - thickness_m) * height_m
 +
  surface_area = external_area + internal_area
 +
  surface_area_mm2 = surface_area * (1e6)
 +
  return surface_area_mm2
 +
height = 127.3239
 +
diameter = 50
 +
thickness = 3
 +
surface_area = calculate_surface_area(height, diameter, thickness)
 +
print(f"The surface area of the stainless steel hydrogen storage container is approximately {surface_area:.2f} square millimeters.")
  
'''Conclusion:
 
'''
 
Based on the given data, namely a target volume of 1 liter, a target pressure of 8 bar, and a cost limit of Rp500,000, we perform design optimization for the hydrogen storage cylinder and the oxygen storage cylinder.
 
  
For the hydrogen storage cylinder, considering the constraints, we have calculated the optimal dimensions which include the radius and height of the cylinder. However, no conclusions can be drawn from the data as the code implementation only searches for the optimal dimensions that satisfy the constraints without providing specific results.
+
The surface area of the stainless steel hydrogen storage container is approximately 38071.22 square millimeters = 380.71 square centimeters
  
Meanwhile, for the oxygen storage tube, we have optimized the design of the tube based on the given volume, pressure, and cost constraints. Based on the optimization results, we can determine the optimal dimensions for oxygen cylinders that satisfy these constraints.
 
  
In conclusion, although there are no specific results for hydrogen storage canisters based on the given data, we have successfully optimized the design of oxygen canisters by taking into account the volume, pressure, and cost constraints. This can help in selecting the optimal dimensions for oxygen cylinders that suit the needs and meet the set constraints.
+
'''conclusion:
 +
'''
 +
In the calculation that has been done. we can know the height, diameter and thickness of the hydrogen tubes used. where we can analyze the cost that we use where on the use of the used plates is stainless steel type 304 for its manufacture with a thickening of 3 mm with an estimated cost of Rp.700,000 (tokped) for the size of 3mm x 30 cm x 120 cm and for nitrogen gas regulator for Rp. 360,000 (tokped). where from the price listed we can know in detail the cost that we can use for the manufacture of nitrogen gas pipes

Revision as of 05:11, 16 June 2023

Resume 26/05/2023

Terdapat hal paling penting : metode numerik merupakan seuatu non fisik yang berkaitan dengan penyelesaian masalah dengan mengutamakan sistematis. metode numerik sangat membantu dalam menyelesaikan permasalahan dalam pembuatan kapal . baik dari badan kapal hingga permesinan kapal. sekarang sudah dibuat 2 sistem yang sampai sekarang masih gagal.

dari connseissnes merangkum dari metode numerik, metode matematika dan lain lain. ini adalah power full itu adalah realitas yang mendasar . conssisness ialah kesadaran. kecepatan cahaya merupakan sesuatu kecepatan yang paling cepat. ketika elektron spining, kalau disini elektron spinning up . akan mempengaruhi elektron dari planet yang lain. itu adalah contoh teori .

contoh cara berfikir sederhana seperti 1/0 atau (x-1)(x-1) dan lain lainnya. metode numerik di bentuk oleh para ilmuan jadi isinya teori teori yang dibuat oleh pembuatnya ( manusia ) sedangkan kitab suci di bentuk oleh tuhan melewati perantara manusia. ilmu dibentuk untuk mengenal diri sendiri lebih dalam. ilmu memberikan kita dalam berfikir dimana hati yang memerintah dan otak yang berjalan dimana hati yang memerintah otak untuk melakukan sesuatu. dimana komputer memerintah dan melakukan sesuatu . proses kita sebenarnya yaitu numerical proses ini semua hanya pendekatan yang exact hanya menciptakan kita.

Design and Optimization of Pressurized Hydrogen Storage System

A Pressurized Hydrogen System is a system designed to store hydrogen gas at elevated pressure levels. This system enables the storage and transportation of hydrogen in its gaseous state, typically by compressing it to enhance its energy density.

Specification

Volume  : 2 L

Pressure  : 16 Bar

Cost  : Rp 1.000.000

Designing a hydrogen system requires careful consideration to ensure both safety and efficiency. If you are using Google to learn about the steps involved in creating a hydrogen system, here are the key steps typically followed: Determine the Capacity and Size:

Decide how much hydrogen you want to store in the tank. This capacity will affect the size and dimensions of the tank. Also, consider the energy requirements that the hydrogen will provide. In this case, the tank has to be 1-Liter Sized.

1. Select Tank Material

Hydrogen tanks are typically made from materials that are strong and capable of withstanding high pressures. Common materials used include alloy steel or carbon fiber reinforced with epoxy resin. Make sure the selected material has sufficient resistance to hydrogen corrosion.

2. Determine Working Pressure

Hydrogen can be stored in tanks either in compressed form or as a liquid. For compression storage, determine the working pressure based on your application needs. Higher working pressures require tanks with thicker and stronger walls.

3. Design Tank Structure

Hydrogen tanks usually have a cylindrical design with end caps. In the design, consider structural strength, tank mass, and thermal performance to avoid leaks or structural failures.

4. Consider Safety Systems

Safety is a critical aspect of hydrogen tank design. Ensure that the tank is equipped with pressure relief valves, and other necessary safety features to reduce the risk of hazards or accidents.

5.Cost Optimization

Minimize costs by considering factors such as material selection, manufacturing processes, and economies of scale because in this case the maximum cost to spend is Rp 1.000.000. Explore different manufacturing techniques, such as filament winding or automated fiber placement, to optimize production costs.

6.Test and Validation

Once the design is complete, conduct testing and validation to ensure the tank meets the required standards and safety regulations. Pressure tests, leak tests, and strength tests are some examples of tests that can be performed.

Final Report Design & Optimization of pressurized Hydrogen Storage

Tabung2.jpg

After performing numerical calculations, we have obtained results regarding the optimization of the design of a pressurized hydrogen storage. We used an approach to determine the optimal size of a tank that can hold 1L of hydrogen at a pressure of 8 bar, with a cost of less than Rp500,000. We initiated the calculation by seeking the optimal dimensions for the tank.


Formula

Ta1.png

Formulas related to tubes are used to calculate various important parameters and properties, such as volume, surface area, and storage capacity. Here are some commonly used formulas in the context of tubes:

Volume of a Tube : The volume of a tube can be calculated using the formula: Volume = π*r^2*h where π (pi) is a mathematical constant that is almost equal to 3.14159, r is the radius of the tube, and h is the height of the tube.

Surface Area of a Tube: The surface area of a tube can be calculated using the formula: Surface Area = 2*π*r^2 + 2*π*r*h This formula takes into account the base surface area and side surface area of the tube.

Storage Capacity: The storage capacity of the tube, in this case the maximum volume that the tube can hold, can also be calculated using the volume formula mentioned above.

Volume of Gas in a Tube: If the pressure and temperature of the gas inside the tube are known, then the volume of gas in the tube can be calculated using the Ideal Gas Law: Volume Gas = (n*R*T)/P where n is the number of moles of the gas, R is the general gas constant, T is the temperature of the gas in kelvin, and P is the pressure of the gas.

Number of Moles of Gas : The number of moles of gas in a tube can be calculated using the formula: n = (m)/(M) where m is the mass of the gas in grams and M is the molar mass of the gas.

Mass of Gas: The mass of the gas in the tube can be calculated using the formula: m = n*M where n is the number of moles of gas and M is the molar mass of gas.

These formulas provide the understanding and ability to calculate and analyze various important parameters and properties associated with tubes. It is important to understand the assumptions and units used in these formulas for accurate and relevant use and interpretation of the calculation results.


Calculation :

1. Thickness

def calculate_thickness(volume, pressure):

  hydrogen_density = 0.08988  # kg/m^3 (density of hydrogen gas at room temperature)
  molar_mass_h2 = 2.016  # g/mol (molar mass of hydrogen gas)
  avogadro_constant = 6.02214076e23  # mol^(-1) (Avogadro constant)
  boltzmann_constant = 1.380649e-23  # J/K (Boltzmann constant)
  temperature = 298.15  # K (room temperature)
  
  liter_to_m3 = 0.001
  bar_to_pa = 100000
  volume_m3 = volume * liter_to_m3
  pressure_pa = pressure * bar_to_pa
  
  num_moles = (pressure_pa * volume_m3) / (boltzmann_constant * temperature)
  
  mass_hydrogen_kg = num_moles * molar_mass_h2 / 1000
  
  surface_area_m2 = mass_hydrogen_kg / hydrogen_density
  
  radius = math.sqrt(surface_area_m2 / (4 * math.pi))
  
  safety_factor = 1.5
  thickness_mm = safety_factor * radius * 1000
  
  return thickness_mm

capacity_liters = 1 pressure_bar = 8

thickness = calculate_thickness(capacity_liters, pressure_bar) print(f"The optimized thickness of the stainless steel hydrogen storage is approximately {thickness} mm.")

Optimized thickness: 0.1 mm


2. Height and Diameter

def calculate_surface_area(radius, height):

  base_area = math.pi * radius**2
  lateral_area = 2 * math.pi * radius * height
  surface_area = 2 * base_area + lateral_area
  return surface_area

def find_optimal_dimensions(volume, pressure, tensile_strength):

  volume_cm3 = volume
  pressure_pa = pressure * 100000
  optimal_radius = None
  optimal_height = None
  min_surface_area = float('inf')
  for radius in range(1, int(math.sqrt(volume_cm3 / math.pi)) + 1):
      height = volume_cm3 / (math.pi * radius**2)
      surface_area = calculate_surface_area(radius, height)
      if surface_area < min_surface_area:
          min_surface_area = surface_area
          optimal_radius = radius
          optimal_height = height
  optimal_radius_cm = optimal_radius
  return optimal_radius_cm, optimal_height

volume = 1000 # 1 liter = 1000 mL pressure = 8 # bar tensile_strength = 600 # MPa optimal_radius_cm, optimal_height = find_optimal_dimensions(volume, pressure, tensile_strength) print(f"Dimensi yang menghasilkan luas permukaan terendah untuk tabung 1 liter dengan tekanan 8 bar:") print(f"Radius: {optimal_radius_cm} cm") print(f"Tinggi: {optimal_height} cm")


Dimensions that result in the lowest surface area for a 1 liter tube at 8 bar pressure: Radius: 5 cm Height: 12.732395447351626 cm


3.Surface Area

def calculate_surface_area(height, diameter, thickness):

  mm_to_m = 0.001
  height_m = height * mm_to_m
  diameter_m = diameter * mm_to_m
  thickness_m = thickness * mm_to_m
  radius = diameter_m / 2
  external_area = 2 * math.pi * radius * (height_m + thickness_m)
  internal_area = 2 * math.pi * (radius - thickness_m) * height_m
  surface_area = external_area + internal_area
  surface_area_mm2 = surface_area * (1e6)
  return surface_area_mm2

height = 127.3239 diameter = 50 thickness = 3 surface_area = calculate_surface_area(height, diameter, thickness) print(f"The surface area of the stainless steel hydrogen storage container is approximately {surface_area:.2f} square millimeters.")


The surface area of the stainless steel hydrogen storage container is approximately 38071.22 square millimeters = 380.71 square centimeters


conclusion: In the calculation that has been done. we can know the height, diameter and thickness of the hydrogen tubes used. where we can analyze the cost that we use where on the use of the used plates is stainless steel type 304 for its manufacture with a thickening of 3 mm with an estimated cost of Rp.700,000 (tokped) for the size of 3mm x 30 cm x 120 cm and for nitrogen gas regulator for Rp. 360,000 (tokped). where from the price listed we can know in detail the cost that we can use for the manufacture of nitrogen gas pipes