[G1-Sync] Manual knowledge update
This commit is contained in:
@@ -2,63 +2,147 @@
|
||||
id: wiki-2026-0508-digital-twins
|
||||
title: Digital Twins
|
||||
category: 10_Wiki/Topics
|
||||
status: needs_review
|
||||
status: verified
|
||||
canonical_id: self
|
||||
aliases: [P-REINFORCE-AI-056]
|
||||
aliases: [Digital Twin, DT, Cyber-Physical Mirror]
|
||||
duplicate_of: none
|
||||
source_trust_level: A
|
||||
confidence_score: 0.98
|
||||
tags: [digital twin, simulation, iot, cyber-physical]
|
||||
confidence_score: 0.9
|
||||
verification_status: applied
|
||||
tags: [iot, simulation, cps, industry-4]
|
||||
raw_sources: []
|
||||
last_reinforced: 2026-06-XX
|
||||
github_commit: "[P-Reinforce] Processed Digital Twins."
|
||||
inferred_by: Claude Opus 4.7 (auto-normalize 2026-05-08)
|
||||
last_reinforced: 2026-05-10
|
||||
github_commit: pending
|
||||
tech_stack:
|
||||
language: Python/C++
|
||||
framework: NVIDIA-Omniverse/Azure-DigitalTwins
|
||||
---
|
||||
|
||||
# [[Digital Twins|Digital Twins]] (디지털 트윈)
|
||||
# Digital Twins
|
||||
|
||||
## 📌 한 줄 통찰 (The Karpathy Summary)
|
||||
> 현실 세계의 물리적 자산(Asset)을 가상 공간에 실시간으로 복제하여, 시뮬레이션과 예측을 통해 실제 시스템 운영 최적화 및 문제 해결 방안을 사전에 검증하는 기술이다.
|
||||
## 매 한 줄
|
||||
> **"매 physical asset/system 의 매 live, bidirectional digital replica"**. Grieves 2002 의 PLM concept 가 매 IoT, sensor cost 폭락, real-time sim, generative AI 의 만남으로 매 Industry 4.0 의 핵심. 매 NVIDIA Omniverse, Azure Digital Twins, Siemens Xcelerator 의 2026 era — physical + digital 의 매 closed loop.
|
||||
|
||||
## 📖 구조화된 지식 (Synthesized Content)
|
||||
- **정의:** 물리적인 객체(Physical Asset)와 그 디지털 모델(Digital Model)이 실시간으로 양방향 통신하며 동기화되는 시스템. 단순히 시뮬레이션 모델을 만드는 것을 넘어, '실제 운영 환경'과의 연결성이 핵심이다.
|
||||
- **구현 요소 및 필요 지식:**
|
||||
1. **데이터 수집 (IoT Telemetry):** 센서 데이터(Edge Computing)를 통해 물리적 상태를 끊임없이 측정하고 전송해야 한다.
|
||||
2. **모델링/시뮬레이션:** 대상 시스템의 동역학, 열역학 등 복잡한 물리 법칙을 수학적으로 모델링한다. (Computational Geometry + Physics-Based Simulation).
|
||||
3. **실시간 연동 및 예측:** 시뮬레이션 결과(가상)를 바탕으로 실제 장비에 최적화된 제어 명령을 역으로 전송하는 폐쇄 루프 시스템이 필요하다 (Cybernetics / Feedback Control Systems).
|
||||
## 매 핵심
|
||||
|
||||
## ⚠️ 모순 및 업데이트 (Contradictions & Updates)
|
||||
- **과거 데이터와의 충돌:** 디지털 트윈의 가치는 '데이터를 모으는 것' 자체가 아니라, 수집된 데이터를 통해 **미래를 예측하고(Prediction)** 시스템을 개선하는 데서 나온다. 즉, 목적이 중요하며, 이는 시뮬레이션 이론으로 뒷받침되어야 한다.
|
||||
- **정책 변화:** 산업의 특성상 높은 수준의 실시간 데이터 무결성과 보안(Cybersecurity) 요구사항이 따르므로, 아키텍처 레벨에서 신뢰성을 확보하는 것이 최우선 과제이다.
|
||||
### 매 3 layer
|
||||
- **Physical**: 실제 자산 + sensor (vibration, temp, pressure, camera).
|
||||
- **Communication**: MQTT/OPC-UA/AMQP, time-series store, edge gateway.
|
||||
- **Digital**: 3D model + physics sim + ML predictor + control logic.
|
||||
|
||||
## 🔗 지식 연결 (Graph)
|
||||
- Parent: [[Internet of Things (IoT) Telemetry|Internet of Things (IoT) Telemetry]]
|
||||
- Related: [[Computational Geometry|Computational Geometry]] , [[Feedback-Control-Systems|Feedback-Control-Systems]] , [[Real-Time-Game-Engines|Real-Time-Game-Engines]]
|
||||
- Raw Source: 00_Raw/Digital Twins.md
|
||||
---
|
||||
### 매 spectrum
|
||||
- **Digital model**: static 3D, no live data.
|
||||
- **Digital shadow**: one-way (physical → digital).
|
||||
- **Digital twin**: bidirectional — twin can command physical.
|
||||
|
||||
## 🤖 LLM 활용 힌트 (How to Use This Knowledge)
|
||||
### 매 응용
|
||||
1. Predictive maintenance (jet engine, wind turbine).
|
||||
2. Smart city traffic / energy optimization.
|
||||
3. Manufacturing line virtual commissioning.
|
||||
4. Healthcare (patient-specific organ twin).
|
||||
5. Robot fleet sim (NVIDIA Isaac, Omniverse).
|
||||
|
||||
**언제 이 지식을 쓰는가:**
|
||||
- *(TODO)*
|
||||
## 💻 패턴
|
||||
|
||||
**언제 쓰면 안 되는가:**
|
||||
- *(TODO)*
|
||||
### Sensor → twin (MQTT + Python)
|
||||
```python
|
||||
import paho.mqtt.client as mqtt, json, time
|
||||
|
||||
## 🧪 검증 상태 (Validation)
|
||||
def on_message(c, u, msg):
|
||||
data = json.loads(msg.payload)
|
||||
twin.update_state(asset_id=data['id'], temp=data['temp'], ts=data['ts'])
|
||||
if twin.predict_failure(data['id']) > 0.8:
|
||||
c.publish(f"cmd/{data['id']}/throttle", "0.5") # bidirectional!
|
||||
|
||||
- **정보 상태:** needs_review
|
||||
- **출처 신뢰도:** A
|
||||
- **검토 이유:** *(P-Reinforce Phase 1 자동 정규화. 본문 검증 필요.)*
|
||||
cli = mqtt.Client(); cli.on_message = on_message
|
||||
cli.connect("mqtt.factory.local"); cli.subscribe("sensor/+"); cli.loop_forever()
|
||||
```
|
||||
|
||||
## 🧬 중복 검사 (Duplicate Check)
|
||||
### Azure Digital Twins (DTDL)
|
||||
```json
|
||||
{
|
||||
"@id": "dtmi:com:factory:Pump;1",
|
||||
"@type": "Interface",
|
||||
"displayName": "Pump",
|
||||
"contents": [
|
||||
{ "@type": "Property", "name": "rpm", "schema": "double" },
|
||||
{ "@type": "Telemetry", "name": "vibration", "schema": "double" },
|
||||
{ "@type": "Command", "name": "shutdown" },
|
||||
{ "@type": "Relationship", "name": "feeds", "target": "dtmi:com:factory:Tank;1" }
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
- **기존 유사 문서:** *(TODO: 인덱서 클러스터 리포트 참조)*
|
||||
- **처리 방식:** UPDATE (자동 정규화)
|
||||
- **처리 이유:** Phase 1 정규화 — 옛 템플릿/누락 필드 보강.
|
||||
### Physics-based twin (Modelica via FMU)
|
||||
```python
|
||||
from fmpy import simulate_fmu
|
||||
result = simulate_fmu(
|
||||
'pump.fmu',
|
||||
start_values={'inlet_pressure': 2.5, 'rpm': 1800},
|
||||
output=['outlet_pressure', 'efficiency'],
|
||||
stop_time=10.0
|
||||
)
|
||||
```
|
||||
|
||||
## 🕓 변경 이력 (Changelog)
|
||||
### Omniverse USD scene (live update)
|
||||
```python
|
||||
from pxr import Usd, UsdGeom, Gf
|
||||
stage = Usd.Stage.Open('factory.usd')
|
||||
pump = UsdGeom.Xform.Get(stage, '/World/Pump_01')
|
||||
# Stream live sensor pose via OmniGraph / Live Sync
|
||||
def on_telemetry(rpm, vibration):
|
||||
pump.GetPrim().GetAttribute('rpm:live').Set(rpm)
|
||||
pump.GetPrim().GetAttribute('vib:live').Set(vibration)
|
||||
```
|
||||
|
||||
| 날짜 | 변경 내용 | 처리 방식 | 신뢰도 |
|
||||
|------|-----------|-----------|--------|
|
||||
| 2026-05-08 | P-Reinforce Phase 1 정규화 (frontmatter + 헤더 표준화) | UPDATE | A |
|
||||
### Predictive maintenance (LSTM)
|
||||
```python
|
||||
import torch.nn as nn
|
||||
class FailurePredictor(nn.Module):
|
||||
def __init__(self, n_sensors=8):
|
||||
super().__init__()
|
||||
self.lstm = nn.LSTM(n_sensors, 64, batch_first=True)
|
||||
self.head = nn.Linear(64, 1)
|
||||
def forward(self, x): # (B, T, n_sensors)
|
||||
h, _ = self.lstm(x)
|
||||
return torch.sigmoid(self.head(h[:, -1]))
|
||||
# Train on (sensor window, RUL label) pairs from CMAPSS / NASA dataset.
|
||||
```
|
||||
|
||||
## 매 결정 기준
|
||||
| 상황 | Approach |
|
||||
|---|---|
|
||||
| Single asset, simple monitoring | Digital shadow (cheap) |
|
||||
| Fleet w/ predictive maint. | Twin + ML failure model |
|
||||
| Process plant commissioning | Physics twin (FMU/Modelica) |
|
||||
| Robotics / AV training | Sim-to-real (Isaac, CARLA) |
|
||||
| Smart city / building | Hierarchical twins (DTDL) |
|
||||
|
||||
**기본값**: 매 start digital shadow → ML 추가 후 twin → bidirectional 마지막.
|
||||
|
||||
## 🔗 Graph
|
||||
- 부모: [[Cyber-Physical Systems]] · [[Industry 4.0]]
|
||||
- 변형: [[Digital Shadow]] · [[Digital Model]]
|
||||
- 응용: [[Predictive Maintenance]] · [[Sim-to-Real]] · [[Smart City]]
|
||||
- Adjacent: [[OPC-UA]] · [[USD (OpenUSD)]] · [[NVIDIA Omniverse]] · [[FMI/FMU]]
|
||||
|
||||
## 🤖 LLM 활용
|
||||
**언제**: IoT/manufacturing/CPS context, sim2real planning, asset lifecycle.
|
||||
**언제 X**: Pure web app, no physical asset. 매 marketing buzzword 화 주의.
|
||||
|
||||
## ❌ 안티패턴
|
||||
- **3D model = twin 오해**: 매 3D 만으론 shadow도 아님.
|
||||
- **Sensor 무인 데이터**: garbage in → garbage twin.
|
||||
- **No model versioning**: physical 변경 시 twin drift.
|
||||
- **Closed-loop without safety**: bidirectional 시 매 fail-safe + human-in-loop 필수.
|
||||
- **Vendor lock-in**: proprietary schema → DTDL/USD 표준 사용.
|
||||
|
||||
## 🧪 검증 / 중복
|
||||
- Verified (Grieves 2014, NIST CPS framework, Azure DT docs, NVIDIA Omniverse docs).
|
||||
- 신뢰도 A.
|
||||
|
||||
## 🕓 Changelog
|
||||
| 날짜 | 변경 |
|
||||
|---|---|
|
||||
| 2026-05-08 | Phase 1 |
|
||||
| 2026-05-10 | Manual cleanup — DT layers + DTDL/Omniverse/MQTT patterns |
|
||||
|
||||
Reference in New Issue
Block a user