Skip to content
Back to skills

Example 2 Natural Frequency Sensitivity Study

ASecurity

'Sub-skill of ship-dynamics-6dof: Example 2: Natural Frequency Sensitivity

  • 17 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 9, 2026
datapythongo

Security analysis

A100/100

Scanned September 9, 2026

npx -y skills add vamseeachanta/workspace-hub --skill example-2-natural-frequency-sensitivity-study --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Example 2 Natural Frequency Sensitivity Study?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Example 2 Natural Frequency Sensitivity Study
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vamseeachanta-example-2-natural-frequency-sensitivity-study/badge)](https://www.skillsdirectory.com/skills/vamseeachanta-example-2-natural-frequency-sensitivity-study)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: ship-dynamics-6dof-example-2-natural-frequency-sensitivity-study
description: 'Sub-skill of ship-dynamics-6dof: Example 2: Natural Frequency Sensitivity
  Study.'
version: 1.0.0
category: engineering
type: reference
scripts_exempt: true
---

# Example 2: Natural Frequency Sensitivity Study

## Example 2: Natural Frequency Sensitivity Study


```python
def natural_frequency_sensitivity_study(
    base_properties: dict,
    parameter_ranges: dict
) -> dict:
    """
    Sensitivity study of natural frequencies to design parameters.

    Args:
        base_properties: Base vessel properties
        parameter_ranges: Parameters to vary

    Returns:
        Sensitivity results
    """
    import plotly.graph_objects as go

    results = {}

    for param_name, param_values in parameter_ranges.items():
        natural_periods = []

        for value in param_values:
            # Update property
            props = base_properties.copy()

            if param_name == 'GMT':
                # Update roll stiffness
                props['K'][3, 3] *= value / base_properties['GMT']
            elif param_name == 'Rxx':
                # Update roll inertia
                m = props['M'][0, 0]
                props['M'][3, 3] = m * value**2

            # Calculate natural frequencies
            freq_result = calculate_coupled_natural_frequencies(
                props['M'], props['K']
            )

            natural_periods.append(freq_result['periods_s'][3])  # Roll period

        results[param_name] = {
            'values': param_values,
            'roll_periods': natural_periods
        }

    # Plot sensitivity
    fig = go.Figure()

    for param_name, data in results.items():
        fig.add_trace(go.Scatter(
            x=data['values'],
            y=data['roll_periods'],
            name=param_name,
            mode='lines+markers'
        ))

    fig.update_layout(
        title='Roll Natural Period Sensitivity',
        xaxis_title='Parameter Value',
        yaxis_title='Roll Natural Period (s)'
    )

    fig.write_html('reports/sensitivity_analysis.html')

    return results

# Example
base = {
    'M': M_fpso,
    'K': C_hydro,
    'GMT': 3.0
}

param_ranges = {
    'GMT': np.linspace(1.0, 5.0, 20),  # m
    'Rxx': np.linspace(18, 26, 20)     # m
}

sensitivity = natural_frequency_sensitivity_study(base, param_ranges)
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.