Skip to content
Skills Library
Science & research · Conversion & formats

csv-export

/csv-export

Export curing simulation results to CSV with node coordinates and displacements. Invoke when user needs CSV output, data export, or result comparison.

Licence
MIT
Last repository change
27.10.2026

Assessment and security

98/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene13 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 27.10.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Export curing simulation results to CSV with node coordinates and displacements. Invoke when user needs CSV output, data export, or result comparison.

Original author description

Export curing simulation results to CSV with node coordinates and displacements. Invoke when user needs CSV output, data export, or result comparison.

How it works

  1. Description
  2. Content
Original SKILL.md headings · 99 lines, 369 words
SKILL.md preview
---
name: "csv-export"
description: "Export curing simulation results to CSV with node coordinates and displacements. Invoke when user needs CSV output, data export, or result comparison."
---

# CSV Export

## Description

Export curing simulation results to CSV with node coordinates and displacements. Invoke when user needs CSV output, data export, or result comparison.

## Content

### CSV Format

The exported CSV file uses the following column format:

```
Node,X,Y,Z,U1,U2,U3
```

- `Node`: Node label (integer)
- `X, Y, Z`: Node coordinates
- `U1, U2, U3`: Displacement components from the sp step last frame

### Complete Export Script

```python
import os
from abaqusConstants import *

work_dir = 'C:\\Users\\...\\work_directory'
recipes = ['P8_mold_recipe_1', 'P8_mold_recipe_2', 'P8_mold_recipe_3']

for name in recipes:
    odb_path = os.path.join(work_dir, name + '.odb')
    odb = session.openOdb(name=name+'_odb', path=odb_path, readOnly=True)

    inst = odb.rootAssembly.instances['P8-1']
    last_frame = odb.steps['sp'].frames[-1]
    u_field = last_frame.fieldOutputs['U']

    u_map = {}
    for val in u_field.values:
        u_map[val.nodeLabel] = (val.data[0], val.data[1], val.data[2])

    csv_path = os.path.join(work_dir, name + '.csv')
    lines = ['Node,X,Y,Z,U1,U2,U3']
    for node in inst.nodes:
        nid = node.label
        x, y, z = node.coordinates
        if nid in u_map:
            u1, u2, u3 = u_map[nid]
            lines.append('%d,%.6f,%.6f,%.6f,%.6f,%.6f,%.6f' % (nid, x, y, z, u1, u2, u3))

    with open(csv_path, 'w') as f:
        f.write('\n'.join(lines))
    odb.close()
```

### Output Details

- **8-ply model:** 5445 nodes exported
- **4-ply model:** 3025 nodes exported
- Data is extracted from the sp step (springback) last frame, which represents the final deformation

### Usage Scenarios

#### Comparing Ply Layups
Use the CSV output to compare different ply layup configurations:
- Symmetry analysis of deformation patterns
- Identifying maximum displacement locations
- Comparing springback magnitudes across recipes

#### Extending with Additional Fields
The script can be extended to include additional field outputs by adding more columns:

```python
# Add stress (S) components
s_field = last_frame.fieldOutputs['S']
s_map = {}
for val in s_field.values:
    s_map[val.elementLabel] = val.data

# Add state variables (SDV1-4)
sdv1_field = last_frame.fieldOutputs['SDV1']
sdv1_map = {}
for val in sdv1_field.values:
    sdv1_map[val.elementLabel] = val.data
```

Available additional fields:
- `S` — Stress (6 components: S11, S22, S33, S12, S13, S23)
- `PE` — Plastic strain
- `SDV1` to `SDV4` — State variables

### Notes

- Use the `%` operator for string formatting (Abaqus uses Python 2.7)
- Always close the ODB after processing each recipe
- The CSV files are saved in the same work directory as the ODB files
- Node coordinates are retrieved from `instance.nodes`, not from a COORD field output

Versions

The database has no other skills named csv-export.

Database snapshot: 13.11.2026 · package version 9bdd3bce8cd8 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100curing-load
    Define pressure loads for composite curing simulation. Invoke when user needs to apply pressure on composite surface during curing.
  • 100curing-temperature
    Define temperature fields for composite curing simulation. Invoke when user needs temperature initialization, temperature changes, or thermal fields for curing steps.
  • 100export-data
    Use when the user wants to export session data — e.g. 'export my sessions', 'download data', 'export to CSV', 'get my data
  • 100bulk-data-export
    Fetch large lists from TikHub (posts, followers, search results, comments) with safe pagination, dedup, and export to CSV or JSON for downstream analysis. Use when the user wants "all posts", "export to CSV/JSON", "scrape N results", "a dataset of", or any large repeated-pull job.
  • 86materials-project
    Query Materials Project records, inspect structures and phase data, and export sourced results with OmniScholar. Use for materials screening, property retrieval, phase analysis, XRD capability checks, or JSON/CSV/Markdown/CIF export.
  • 95csv-processing
    Use this skill when reading sensor data from CSV files, writing simulation results to CSV, processing time-series data with pandas, or handling missing values in datasets.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.