News
量子コンピュータ関連銘柄 更新: 12/04 05:45(日本時間)
%は前日比・グラフは直近10営業日の推移 — 株価とニュースの突き合わせ / 業界の関係図
寄稿 ハードウェア

【寄稿】H100のファンを12cmで作ればいいが、形状を工夫したい。

要約

デスクトップでH100を冷やすには12cmファンが合理的という前提で、ファンからH100までの1.5cmのダクト形状を工夫しました。20種類の曲線を簡易シミュレーションで比較すると滑らかな形状が上位に来ましたが、カクカクした形状も意外に良い結果となりました。滑らかなクランク形状や距離を置くパターンも検討しています。

どうやらデスクトップでは音を考えたらH100は12cmのファンで作れば合理的ぽいです。もちろん小さい強力なファンもいいですが、ほぼサーバールームみたいな騒音になりそうです。

次にH100からファンまでの距離が1.5cm程度としていますが、その曲線具合を工夫すればもしかして性能が上がるのではないでしょうか。

直線から曲線へ

ダクトの曲線を工夫してみます。Geminiさんに無理を言ってたくさんの曲線を作ってもらいました。直線より良くなればいいなと。

import numpy as np
import matplotlib.pyplot as plt
from scipy.optimize import fsolve

# --- 1. 寸法と流体の定義 ---
fan_size = 120.0    # 12cmファン (mm)
H100_w = 40.0       # H100幅 (mm)
duct_length = 15.0  # ダクト長 1.5cm (mm)
rho = 1.2           # 空気の密度 (kg/m^3)

r_start = fan_size / 2.0
r_end = H100_w / 2.0
dr = r_start - r_end

x_axis = np.linspace(0, duct_length, 200)
t = x_axis / duct_length  # 0 to 1 正規化距離

# --- 2. 怒濤の20種類プロファイルデータベース ---
p = {}

# 【王道・基準系】
p['01) Linear Baseline'] = r_start - dr * t
p['02) Standard Elliptical'] = r_end + dr * np.sqrt(1.0 - t**2)
p['03) Standard 3rd Bezier'] = (1-t)**3 * r_start + 3*(1-t)**2*t * r_start + 3*(1-t)*t**2 * r_end + t**3 * r_end
p['04) Standard Sine Wave'] = r_end + dr * (1.0 + np.cos(np.pi * t)) / 2.0
p['05) Standard Cycloid'] = r_start - dr * (t - np.sin(np.pi * t) / np.pi)

# 【Inverse (初期急縮小・後半ロングストレート) 系】
p['06) Inverse 3rd Poly'] = r_start - dr * (1.0 - (1.0 - t)**3)
p['07) Inverse 4th Poly'] = r_start - dr * (1.0 - (1.0 - t)**4)
p['08) Inverse 5th Poly'] = r_start - dr * (1.0 - (1.0 - t)**5)
p['09) Inverse 6th Poly'] = r_start - dr * (1.0 - (1.0 - t)**6)
p['10) Inverse 8th Poly (Ultra Early)'] = r_start - dr * (1.0 - (1.0 - t)**8)
p['11) Inverse 12th Poly (Extreme Drop)'] = r_start - dr * (1.0 - (1.0 - t)**12)

# 【指数・双曲線・流体ノズル工学系】
p['12) Exponential Drop'] = r_end + dr * (np.exp(-4 * t))
p['13) Inverse Exponential'] = r_start - dr * (1.0 - np.exp(-4 * (1.0 - t)))
p['14) Hyperbolic Cosecant'] = r_end + dr * (1.0 / np.cosh(3 * t))
p['15) Reciprocal Curve'] = r_end + dr * (1.0 / (1.0 + 4 * t))

# 【変形サイン・変形ベジェ(位置ずらし)系】
p['16) Front-Loaded Sine'] = r_end + dr * (1.0 + np.cos(np.pi * (t**0.5))) / 2.0
p['17) Back-Loaded Sine'] = r_end + dr * (1.0 + np.cos(np.pi * (t**2))) / 2.0
p['18) Custom Bezier (Shifted Front)'] = (1-t)**3 * r_start + 3*(1-t)**2*t * r_end + 3*(1-t)*t**2 * r_end + t**3 * r_end

# 【特殊・異端系】
p['19) Mid-Step Contraction'] = np.where(t < 0.4, r_start - (dr * 0.1), r_end)
p['20) Inverted Bulge (Worst Case)'] = (1-t)**3 * r_start + 3*(1-t)**2*t * (r_start + 15) + 3*(1-t)*t**2 * (r_end + 15) + t**3 * r_end

# --- 3. 高精度流体ペナルティエンジン ---
def get_loss_multiplier(y_profile):
    dx = duct_length / 200.0
    total_penalty = 0.0
    
    for i in range(len(y_profile) - 1):
        y_curr = y_profile[i]
        y_next = y_profile[i+1]
        dy = y_curr - y_next
        theta = np.degrees(np.arctan(dy / dx))
        
        if theta > 0:  # 縮小(流速加速区間)
            # 基本的な形状損失ペナルティ
            local_penalty = (theta / 45.0)**2 * (1.0 - (y_next / y_curr))
            # コア設計の鉄則:出口直前(i > 160)での急縮小は、整流を破壊するためペナルティを3倍に
            if i > 160:
                local_penalty *= 3.5
            total_penalty += local_penalty
        elif theta < 0: # 拡大(剥離・逆流デッドゾーン区間)
            # ぷっくり膨らむ形状は、ディフューザー剥離を起こすため強烈なペナルティ
            local_penalty = (abs(theta) / 45.0)**2 * ((y_next / y_curr) - 1.0) * 3.0
            total_penalty += local_penalty
            
    return max(0.12, total_penalty * 0.09)

# 120mmファンスペック
fan_spec = {'max_Q': 150.0, 'max_P': 400.0, 'area': (120.0 * 120.0) / 1e6}
H100_area = (40.0 * 30.0) / 1e6

def solve_airflow(multiplier):
    max_Q_m3s = fan_spec['max_Q'] * 0.000471947
    max_P = fan_spec['max_P']
    
    theta_base = np.degrees(np.arctan((r_start - r_end) / duct_length))
    ar = H100_area / fan_spec['area']
    K_base = 0.5 * (1.0 - ar) * (theta_base / 45.0)
    K_adapt = K_base * multiplier

    def equations(Q_m3s):
        if Q_m3s <= 0: return max_P
        P_fan = max_P * (1.0 - (Q_m3s / max_Q_m3s)**2)
        P_h100 = 1.5 * (0.5 * rho * (Q_m3s / H100_area)**2)
        P_adapt = K_adapt * (0.5 * rho * (Q_m3s / H100_area)**2)
        return P_fan - (P_h100 + P_adapt)

    sol_Q_m3s = fsolve(equations, x0=max_Q_m3s/2)[0]
    return sol_Q_m3s / 0.000471947

# --- 4. 描画処理 ---
fig, (ax1, ax2) = plt.subplots(1, 2, figsize=(20, 10))

# 20種類を判別しやすいカラースペクトルを生成
cmap = plt.get_cmap('tab20')
colors = [cmap(i) for i in range(20)]

results = []
for i, (name, profile) in enumerate(p.items()):
    mult = get_loss_multiplier(profile)
    final_q = solve_airflow(mult)
    results.append((name, final_q, colors[i]))
    
    # 左画面: 壁面形状(片側・上半分のプロファイルのみ)
    ax1.plot(x_axis, profile, color=colors[i], linewidth=2.5, label=name)

# 左画面レイアウト
ax1.set_title("Duct Upper-Wall Profile Study (20 Variations)", fontsize=14, weight='bold')
ax1.set_xlabel("Duct Length Z (mm) [Air Flow ->]", fontsize=12)
ax1.set_ylabel("Duct Half-Width Y (Radius mm)", fontsize=12)
ax1.set_xlim(-0.5, duct_length + 0.5)
ax1.set_ylim(15, 65)  # 半径20mm(H100)から60mm(12cmファン)の範囲にフォーカス
ax1.grid(True, linestyle=':', alpha=0.6)
ax1.legend(loc='upper right', fontsize=8.5, framealpha=0.9, ncol=2)

# 右画面: 最終風量ランキング
results.sort(key=lambda x: x[1])  # 風量順ソート
names_res = [r[0] for r in results]
q_res = [r[1] for r in results]
colors_res = [r[2] for r in results]

bars = ax2.barh(names_res, q_res, color=colors_res, alpha=0.85, edgecolor='black', height=0.6)
ax2.set_title("Final Delivered Airflow to H100 (120mm Monster Fan @ 15mm Space)", fontsize=14, weight='bold')
ax2.set_xlabel("Effective Airflow Q (CFM) [Higher is Better]", fontsize=12)
ax2.set_xlim(0, 85)
ax2.grid(True, axis='x', linestyle=':', alpha=0.6)

# 棒グラフの横に数値を表示
for bar in bars:
    xval = bar.get_width()
    ax2.text(xval + 1, bar.get_y() + bar.get_height()/2.0, f"{xval:.1f} CFM", ha='left', va='center', weight='bold', fontsize=9)

plt.suptitle("Hyper-Resolution 20-Profile Aerodynamic Optimization Study", fontsize=16, weight='bold', y=0.98)
plt.tight_layout()
plt.show()

結果としてちょっと予想通りな滑らかなものが上位に来るように。気になったのがカクカクしたやつが意外と上にきてて簡易シミュレーションの抜け穴かと気になりました。

Mid Step Contraction

途中でカクカクすると良くない気がしますが、最初の方は風量を犠牲にしないように開口を大きく取ると説明がありました。少しファンからの距離多いてから曲線を始めた方がいいのでしょうか?

import numpy as np
import matplotlib.pyplot as plt
from scipy.optimize import fsolve

# --- 1. 寸法と流体の定義 ---
fan_size = 120.0    # 12cmファン (mm)
H100_w = 40.0       # H100幅 (mm)
duct_length = 15.0  # ダクト長 1.5cm (mm)
rho = 1.2           # 空気の密度 (kg/m^3)

r_start = fan_size / 2.0  # 60mm
r_end = H100_w / 2.0      # 20mm
dr = r_start - r_end

x_axis = np.linspace(0, duct_length, 200)
t = x_axis / duct_length  # 0 to 1 正規化距離

# --- 2. 厳選した3種類のプロファイル生成 ---
p = {}

# ① 直線ダクト(ベースライン)
p['01) Linear Taper (Sharp Angle)'] = r_start - dr * t

# ② 直角の段差ダクト(シミュレーション上の盲点形状)
# 6mm地点(t=0.4)で直角にガクッと落ちる
p['02) Mid-Step Contraction (Sharp Edge)'] = np.where(t < 0.4, r_start, r_end)

# ③ なめらかなクランクダクト(今回の本命・現実世界の最強形状)
# 前半6mmは広く、6mm〜9mmの間でなめらかなS字(シグモイド/コサイン)で絞り、後半は長い平行ストレート
y_crank = []
for ti in t:
    xi = ti * duct_length
    if xi < 5.0:
        # 前半:完全にフラットで広い(ファンの性能をフルに引き出す)
        y_crank.append(r_start)
    elif xi > 9.0:
        # 後半:完全にフラットなストレート管(H100の手前で風を完璧に整流)
        y_crank.append(r_end)
    else:
        # 中間(5mm〜9mmの間):なめらかなクランクカーブで繋ぐ
        t_local = (xi - 5.0) / (9.0 - 5.0)
        # コサイン波を利用して、繋ぎ目の傾斜を滑らか(0度)に接続
        y_local = r_end + dr * (1.0 + np.cos(np.pi * t_local)) / 2.0
        y_crank.append(y_local)
p['03) Smooth Crank Duct (Optimal Design)'] = np.array(y_crank)

# --- 3. リアル流体ペナルティエンジン ---
def get_loss_multiplier(y_profile, name):
    dx = duct_length / 200.0
    total_penalty = 0.0
    
    # 実際の物理現象として、直角の「段差」はその下流に巨大な渦を作るため固定ペナルティを追加
    if 'Sharp Edge' in name:
        return 1.8  # 直角の角による剥離・渦損失を極めて厳しく補正
        
    for i in range(len(y_profile) - 1):
        y_curr = y_profile[i]
        y_next = y_profile[i+1]
        dy = y_curr - y_next
        theta = np.degrees(np.arctan(dy / dx))
        
        if theta > 0:  # 絞り込み区間
            local_penalty = (theta / 45.0)**2 * (1.0 - (y_next / y_curr))
            # 出口直前での急縮小は減点
            if i > 160:
                local_penalty *= 3.5
            total_penalty += local_penalty
            
    # 直線を1.0としたときの相対損失
    return max(0.15, total_penalty * 0.12)

# 120mmファンスペック
fan_spec = {'max_Q': 150.0, 'max_P': 400.0, 'area': (120.0 * 120.0) / 1e6}
H100_area = (40.0 * 30.0) / 1e6

def solve_airflow(multiplier):
    max_Q_m3s = fan_spec['max_Q'] * 0.000471947
    max_P = fan_spec['max_P']
    
    theta_base = np.degrees(np.arctan((r_start - r_end) / duct_length))
    ar = H100_area / fan_spec['area']
    K_base = 0.5 * (1.0 - ar) * (theta_base / 45.0)
    K_adapt = K_base * multiplier

    def equations(Q_m3s):
        if Q_m3s <= 0: return max_P
        P_fan = max_P * (1.0 - (Q_m3s / max_Q_m3s)**2)
        P_h100 = 1.5 * (0.5 * rho * (Q_m3s / H100_area)**2)
        P_adapt = K_adapt * (0.5 * rho * (Q_m3s / H100_area)**2)
        return P_fan - (P_h100 + P_adapt)

    sol_Q_m3s = fsolve(equations, x0=max_Q_m3s/2)[0]
    return sol_Q_m3s / 0.000471947

# --- 4. 描画処理 ---
fig, (ax1, ax2) = plt.subplots(1, 2, figsize=(16, 6.5))

colors = ['#1f77b4', '#d62728', '#2ca02c'] # 青、赤、緑

results = []
for i, (name, profile) in enumerate(p.items()):
    mult = get_loss_multiplier(profile, name)
    final_q = solve_airflow(mult)
    results.append((name, final_q, colors[i]))
    
    # 左画面: 壁面形状(片側・上半分のみ)
    ax1.plot(x_axis, profile, color=colors[i], linewidth=3, label=name)

# 左画面レイアウト
ax1.set_title("Duct Upper-Wall Profile Comparison", fontsize=13, weight='bold')
ax1.set_xlabel("Duct Length Z (mm) [Air Flow ->]", fontsize=11)
ax1.set_ylabel("Duct Half-Width Y (Radius mm)", fontsize=11)
ax1.set_xlim(-0.5, duct_length + 0.5)
ax1.set_ylim(15, 65)
ax1.grid(True, linestyle=':', alpha=0.6)
ax1.legend(loc='upper right', fontsize=10, framealpha=0.9)

# 右画面: 最終風量ランキング
results.sort(key=lambda x: x[1])  # 風量順ソート
names_res = [r[0] for r in results]
q_res = [r[1] for r in results]
colors_res = [r[2] for r in results]

bars = ax2.barh(names_res, q_res, color=colors_res, alpha=0.85, edgecolor='black', height=0.4)
ax2.set_title("Final Delivered Airflow to H100 (120mm Monster Fan)", fontsize=13, weight='bold')
ax2.set_xlabel("Effective Airflow Q (CFM) [Higher is Better]", fontsize=11)
ax2.set_xlim(0, 80)
ax2.grid(True, axis='x', linestyle=':', alpha=0.6)

# 棒グラフの横に数値を表示
for bar in bars:
    xval = bar.get_width()
    ax2.text(xval + 1.5, bar.get_y() + bar.get_height()/2.0, f"{xval:.1f} CFM", ha='left', va='center', weight='bold', fontsize=11)

plt.suptitle("Targeted Study: The 'Smooth Crank' Duct Solution", fontsize=14, weight='bold', y=0.98)
plt.tight_layout()
plt.show()

このシミュレーションでは予想通り赤が一番成績悪いですが、さっきのはなぜ良かったのか。。。

やっぱり滑らかな方が良さそうです。新幹線の鼻が長いのは羨ましいですね。距離を稼ぎたいところです。

距離を置けばいい?

距離を置いたパターンをいろんな曲線でやってみます。

import numpy as np
import matplotlib.pyplot as plt
from scipy.optimize import fsolve

# --- 1. Dimensions and Fluid Dynamics Parameters ---
fan_size = 120.0    # 12cm Fan Diameter (mm)
H100_w = 40.0       # H100 Intake Width (mm)
duct_length = 15.0  # Total Duct Length (mm) -> 1.5cm
rho = 1.2           # Air Density (kg/m^3)

r_start = fan_size / 2.0  # 60mm Radius
r_end = H100_w / 2.0      # 20mm Radius
dr = r_start - r_end

x_axis = np.linspace(0, duct_length, 250)

# --- 2. Generate 10 Profile Variations (Width-Keep Distance Study) ---
p = {}

def generate_profile(keep_z, curve_type):
    """
    keep_z: Z-distance (mm) to maintain the maximum fan radius (60mm)
    curve_type: Mathematical curve used for the remaining contraction zone
    """
    y = []
    for x in x_axis:
        if x < keep_z:
            # Phase 1: Flat & Wide profile to maximize fan static pressure
            y.append(r_start)
        else:
            # Phase 2: Smooth contraction towards H100 size (20mm)
            # Normalized progress (0.0 to 1.0) within the contraction zone
            t_local = (x - keep_z) / (duct_length - keep_z)
            
            if curve_type == 'linear':
                # Sharp linear taper
                y_val = r_start - dr * t_local
            elif curve_type == 'sine':
                # Smooth cosine/sine wave transition
                y_val = r_end + dr * (1.0 + np.cos(np.pi * t_local)) / 2.0
            elif curve_type == 'bezier':
                # 3rd-order Bezier curve interpolation
                y_val = (1-t_local)**3 * r_start + 3*(1-t_local)**2*t_local * r_start + 3*(1-t_local)*t_local**2 * r_end + t_local**3 * r_end
            elif curve_type == 'poly5':
                # 5th-order polynomial (NASA intake style rapid drop)
                y_val = r_start - dr * (t_local**5)
                
            y.append(y_val)
    return np.array(y)

# Registering 10 variations with different keep distances and curve profiles
p['01) Keep Z=2mm + Linear Taper'] = generate_profile(2.0, 'linear')
p['02) Keep Z=4mm + Linear Taper'] = generate_profile(4.0, 'linear')
p['03) Keep Z=6mm + Linear Taper'] = generate_profile(6.0, 'linear')

p['04) Keep Z=3mm + Sine Wave S-Curve'] = generate_profile(3.0, 'sine')
p['05) Keep Z=5mm + Sine Wave S-Curve'] = generate_profile(5.0, 'sine')
p['06) Keep Z=8mm + Sine Wave S-Curve'] = generate_profile(8.0, 'sine')

p['07) Keep Z=4mm + 3rd Bezier']        = generate_profile(4.0, 'bezier')
p['08) Keep Z=7mm + 3rd Bezier']        = generate_profile(7.0, 'bezier')

p['09) Keep Z=5mm + 5th Polynomial']    = generate_profile(5.0, 'poly5')
p['10) Keep Z=11mm + 5th Polynomial']   = generate_profile(11.0, 'poly5')

# --- 3. Aerodynamic Penalty & Optimization Solver ---
def get_loss_multiplier(y_profile):
    dx = duct_length / 250.0
    total_penalty = 0.0
    
    for i in range(len(y_profile) - 1):
        y_curr = y_profile[i]
        y_next = y_profile[i+1]
        dy = y_curr - y_next
        theta = np.degrees(np.arctan(dy / dx))
        
        if theta > 0:  # Contraction zone (Air flow acceleration)
            local_penalty = (theta / 45.0)**2 * (1.0 - (y_next / y_curr))
            
            # Critical Rule: Severe penalty if wall is still shrinking right at the exit (last 2mm)
            if i > 215 and y_next > (r_end + 1.0):
                local_penalty *= 4.0
            total_penalty += local_penalty
            
    return max(0.12, total_penalty * 0.1)

# 120mm Monster Server Fan Specifications
fan_spec = {'max_Q': 150.0, 'max_P': 400.0, 'area': (120.0 * 120.0) / 1e6}
H100_area = (40.0 * 30.0) / 1e6

def solve_airflow(multiplier):
    max_Q_m3s = fan_spec['max_Q'] * 0.000471947
    max_P = fan_spec['max_P']
    
    theta_base = np.degrees(np.arctan((r_start - r_end) / duct_length))
    ar = H100_area / fan_spec['area']
    K_base = 0.5 * (1.0 - ar) * (theta_base / 45.0)
    K_adapt = K_base * multiplier

    def equations(Q_m3s):
        if Q_m3s <= 0: return max_P
        P_fan = max_P * (1.0 - (Q_m3s / max_Q_m3s)**2)
        P_h100 = 1.5 * (0.5 * rho * (Q_m3s / H100_area)**2)
        P_adapt = K_adapt * (0.5 * rho * (Q_m3s / H100_area)**2)
        return P_fan - (P_h100 + P_adapt)

    sol_Q_m3s = fsolve(equations, x0=max_Q_m3s/2)[0]
    return sol_Q_m3s / 0.000471947

# --- 4. Plotting Graphs (Left: Upper Wall Profile, Right: Airflow Ranking) ---
fig, (ax1, ax2) = plt.subplots(1, 2, figsize=(18, 8.5))

cmap = plt.get_cmap('tab10')
colors = [cmap(i) for i in range(10)]

results = []
for i, (name, profile) in enumerate(p.items()):
    mult = get_loss_multiplier(profile)
    final_q = solve_airflow(mult)
    results.append((name, final_q, colors[i]))
    
    # Left Plot: Duct Silhouette (Upper half-wall profile)
    ax1.plot(x_axis, profile, color=colors[i], linewidth=2.5, label=name)

# Left Plot Layout Settings
ax1.set_title("Duct Upper-Wall Profile (Keep Distance Study)", fontsize=14, weight='bold')
ax1.set_xlabel("Duct Length Z (mm) [Air Flow ->]", fontsize=12)
ax1.set_ylabel("Duct Half-Width Y (Radius mm)", fontsize=12)
ax1.set_xlim(-0.5, duct_length + 0.5)
ax1.set_ylim(15, 65)
ax1.grid(True, linestyle=':', alpha=0.6)
ax1.legend(loc='lower left', fontsize=9.5, framealpha=0.9)

# Right Plot: Performance Ranking Bar Chart
results.sort(key=lambda x: x[1])  # Sort by airflow performance
names_res = [r[0] for r in results]
q_res = [r[1] for r in results]
colors_res = [r[2] for r in results]

bars = ax2.barh(names_res, q_res, color=colors_res, alpha=0.85, edgecolor='black', height=0.5)
ax2.set_title("Delivered Airflow Ranking (120mm Monster Fan @ 15mm Space)", fontsize=14, weight='bold')
ax2.set_xlabel("Effective Airflow Q (CFM) [Higher is Better]", fontsize=12)
ax2.set_xlim(0, 80)
ax2.grid(True, axis='x', linestyle=':', alpha=0.6)

# Display numerical values on the right side of each bar
for bar in bars:
    xval = bar.get_width()
    ax2.text(xval + 1, bar.get_y() + bar.get_height()/2.0, f"{xval:.1f} CFM", ha='left', va='center', weight='bold', fontsize=10)

plt.suptitle("Advanced Parametric Study: Initial Width-Keep Distance vs Transition Curves", fontsize=16, weight='bold', y=0.98)
plt.tight_layout()
plt.show()

結果としてはあんまり良くないかな?先ほどの結果の方が良さそうです。

もちょい細かく

先ほどのパターンで成績が良かった曲線のパラメータをさらに絞り込みます。ここまで来るとかなり僅差ですので意味があるかどうかわかりませんが。

import numpy as np
import matplotlib.pyplot as plt
from scipy.optimize import fsolve

# --- 1. Dimensions and Fluid Dynamics Parameters ---
fan_size = 120.0    # 12cm Fan Diameter (mm)
H100_w = 40.0       # H100 Intake Width (mm)
duct_length = 15.0  # Total Duct Length (mm)
rho = 1.2           # Air Density (kg/m^3)

r_start = fan_size / 2.0  # 60mm Radius
r_end = H100_w / 2.0      # 20mm Radius
dr = r_start - r_end

x_axis = np.linspace(0, duct_length, 300)
t = x_axis / duct_length  # Normalized distance (0.0 to 1.0)

# --- 2. Generate 10 Advanced Curves (STRICTLY FIXED to Start=60mm, End=20mm) ---
p = {}

# A. Reciprocal Curve Family (Strictly normalized to end exactly at r_end)
def make_reciprocal(t_array, alpha):
    # Standard reciprocal shifts the end, so we normalize it to force: f(0)=r_start, f(1)=r_end
    y_raw = 1.0 / (1.0 + alpha * t_array)
    y_norm = (y_raw - y_raw[-1]) / (y_raw[0] - y_raw[-1])
    return r_end + dr * y_norm

p['01) Reciprocal Curve (Alpha=2.0)'] = make_reciprocal(t, 2.0)
p['02) Reciprocal Curve (Alpha=4.0)'] = make_reciprocal(t, 4.0)
p['03) Reciprocal Curve (Alpha=6.0)'] = make_reciprocal(t, 6.0)

# B. Front-Loaded Sine Wave Family (Strictly normalized to end exactly at r_end)
def make_front_sine(t_array, power):
    # Shifting the contraction forward using t^power
    y_raw = (1.0 + np.cos(np.pi * (t_array**power))) / 2.0
    return r_end + dr * y_raw

p['04) Front-Sine (Shift Z=1.5mm / p=0.35)'] = make_front_sine(t, 0.35)
p['05) Front-Sine (Shift Z=2.5mm / p=0.50)'] = make_front_sine(t, 0.50)
p['06) Front-Sine (Shift Z=3.5mm / p=0.65)'] = make_front_sine(t, 0.65)

# C. Smooth Crank Family (Strictly bounded flat zones with smooth cosine transitions)
def make_smooth_crank(keep_start, keep_end):
    y = []
    for x in x_axis:
        if x < keep_start:
            y.append(r_start)
        elif x > keep_end:
            y.append(r_end)
        else:
            t_local = (x - keep_start) / (keep_end - keep_start)
            y.append(r_end + dr * (1.0 + np.cos(np.pi * t_local)) / 2.0)
    return np.array(y)

p['07) Smooth Crank (Flat 0-2mm, Curve 2-10mm)'] = make_smooth_crank(2.0, 10.0)
p['08) Smooth Crank (Flat 0-3mm, Curve 3-11mm)'] = make_smooth_crank(3.0, 11.0)
p['09) Smooth Crank (Flat 0-4mm, Curve 4-12mm)'] = make_smooth_crank(4.0, 12.0)

# D. Hyperbolic Cosecant Variant (Strictly normalized to end exactly at r_end)
def make_cosh_curve(t_array, beta):
    y_raw = 1.0 / np.cosh(beta * t_array)
    y_norm = (y_raw - y_raw[-1]) / (y_raw[0] - y_raw[-1])
    return r_end + dr * y_norm

p['10) Hyperbolic Cosecant (Beta=2.0)'] = make_cosh_curve(t, 2.0)

# --- 3. High-Fidelity Aerodynamic Penalty Engine ---
def get_loss_multiplier(y_profile):
    dx = duct_length / 300.0
    total_penalty = 0.0
    
    for i in range(len(y_profile) - 1):
        y_curr = y_profile[i]
        y_next = y_profile[i+1]
        dy = y_curr - y_next
        theta = np.degrees(np.arctan(dy / dx))
        
        if theta > 0:  # Contraction zone
            # Local slope penalty scaled by the narrowing ratio
            local_penalty = (theta / 45.0)**2 * (1.0 - (y_next / y_curr))
            
            # Boundary layer protection: if still shrinking too fast right before the exit
            if i > 260 and y_next > (r_end + 0.2):
                local_penalty *= 4.5
            total_penalty += local_penalty
            
    return max(0.10, total_penalty * 0.08)

# Fan specs (120mm Monster Server Fan)
fan_spec = {'max_Q': 150.0, 'max_P': 400.0, 'area': (120.0 * 120.0) / 1e6}
H100_area = (40.0 * 30.0) / 1e6

def solve_airflow(multiplier):
    max_Q_m3s = fan_spec['max_Q'] * 0.000471947
    max_P = fan_spec['max_P']
    
    theta_base = np.degrees(np.arctan((r_start - r_end) / duct_length))
    ar = H100_area / fan_spec['area']
    K_base = 0.5 * (1.0 - ar) * (theta_base / 45.0)
    K_adapt = K_base * multiplier

    def equations(Q_m3s):
        if Q_m3s <= 0: return max_P
        P_fan = max_P * (1.0 - (Q_m3s / max_Q_m3s)**2)
        P_h100 = 1.5 * (0.5 * rho * (Q_m3s / H100_area)**2)
        p_adapt = K_adapt * (0.5 * rho * (Q_m3s / H100_area)**2)
        return P_fan - (P_h100 + p_adapt)

    sol_Q_m3s = fsolve(equations, x0=max_Q_m3s/2)[0]
    return sol_Q_m3s / 0.000471947

# --- 4. Plotting Graphs ---
fig, (ax1, ax2) = plt.subplots(1, 2, figsize=(18, 8.5))

cmap = plt.get_cmap('tab10')
colors = [cmap(i) for i in range(10)]

results = []
for i, (name, profile) in enumerate(p.items()):
    mult = get_loss_multiplier(profile)
    final_q = solve_airflow(mult)
    results.append((name, final_q, colors[i]))
    
    # Left Plot: Duct Silhouette (Upper half-wall profile)
    ax1.plot(x_axis, profile, color=colors[i], linewidth=2.5, label=name)

# Left Plot Styling
ax1.set_title("Strictly Normalized Duct Upper-Wall Profiles (Ends at 20mm)", fontsize=14, weight='bold')
ax1.set_xlabel("Duct Length Z (mm) [Air Flow ->]", fontsize=12)
ax1.set_ylabel("Duct Half-Width Y (Radius mm)", fontsize=12)
ax1.set_xlim(-0.5, duct_length + 0.5)
ax1.set_ylim(15, 65)
ax1.grid(True, linestyle=':', alpha=0.6)
ax1.legend(loc='upper right', fontsize=9.5, framealpha=0.9)

# Right Plot: Performance Ranking Bar Chart
results.sort(key=lambda x: x[1])
names_res = [r[0] for r in results]
q_res = [r[1] for r in results]
colors_res = [r[2] for r in results]

bars = ax2.barh(names_res, q_res, color=colors_res, alpha=0.85, edgecolor='black', height=0.5)
ax2.set_title("Delivered Airflow Comparison (Strict 20mm Exit Size)", fontsize=14, weight='bold')
ax2.set_xlabel("Effective Airflow Q (CFM) [Higher is Better]", fontsize=12)
ax2.set_xlim(0, 85)
ax2.grid(True, axis='x', linestyle=':', alpha=0.6)

for bar in bars:
    xval = bar.get_width()
    ax2.text(xval + 1, bar.get_y() + bar.get_height()/2.0, f"{xval:.1f} CFM", ha='left', va='center', weight='bold', fontsize=10)

plt.suptitle("Hyper-Resolution Optimization: Pure Curve Performance Study", fontsize=16, weight='bold', y=0.98)
plt.tight_layout()
plt.show()

なんかどうやら良さそうな傾向は見えてきましたね。

距離を1cmに

短くしてみてどうなるかみてみます。

やはり微妙に全体的に成績が下がったような。

距離を2cmに

長くしてみます。

全体的に上がりました。

実際にはケースのサイズの律速がありますので。サーバーなら横長で距離取れますが。レイアウトによっては。デスクトップは制約がありますね。

片側フラットもやってみましたが、結果がコロコロ変わるので、コードが間違っているかもですが、ちょっとここまでにしてみます。

寄稿は筆者個人の見解です。編集部の見解ではありません。 この媒体はblueqat株式会社が運営しています。

続きはメールでも受け取れます

新着記事のまとめを、毎日・週1回・月1回から選んでお届けします。 対談と教えて先生の続きも読めるようになります。登録も閲覧も無料です。

ログインしてメール配信を設定