| name | yaml-configuration-1-basic-yaml-syntax |
| description | Sub-skill of yaml-configuration: 1. Basic YAML Syntax (+1). |
| version | 1.0.0 |
| category | data |
| type | reference |
| scripts_exempt | true |
1. Basic YAML Syntax (+1)
1. Basic YAML Syntax
Scalars:
project_name: "FPSO Mooring Analysis"
description: Simple mooring system
water_depth: 1500
wave_height: 8.5
scientific: 1.5e-3
include_current: true
dynamic_analysis: false
optional_parameter: null
optional_parameter: ~
Lists:
mooring_lines: [1, 2, 3, 4, 5, 6]
vessel_types:
- FPSO
- Semi-submersible
- TLP
- SPAR
load_cases:
- name: "Operating"
Hs: 4.5
Tp: 10.0
- name: "Storm"
Hs: 8.5
Tp: 12.0
Dictionaries:
vessel:
name: "FPSO Vessel"
dimensions:
length: 320
beam: 58
draft: 22
mass_properties:
displacement: 150000
lcg: 160
vcg: 15
2. Advanced Features
Anchors and Aliases (Reuse):
default_material: &steel
name: "Steel"
density: 7850
youngs_modulus: 200e9
chain_material: *steel
mooring_line:
material: *steel
base_config: &base
version: 1.0
author: "Engineering Team"
analysis_1:
<<: *base
name: "Analysis 1"
parameters:
duration: 3600
analysis_2:
<<: *base
name: "Analysis 2"
parameters:
duration: 7200
Multi-line Strings:
description: |
This is a multi-line string.
Newlines are preserved.
Use for comments or descriptions.
notes: >
This string will have
newlines replaced with spaces,
except for blank lines.
This starts a new paragraph.
Comments:
project: "Mooring Analysis"
vessel:
length: 320
beam: 58