Skip to content
Back to skills

Octave Tetrahedron Phase Coherence Simulation

ASecurity

Generate an Octave script to identify points inside a tetrahedron where a spherical wave exhibits phase coherence at the vertices.

  • 17 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added May 30, 2026
documentation

Security analysis

A100/100

Scanned May 30, 2026

npx -y skills add gabrielmoreira/agent-skills-mirror --skill octave-tetrahedron-phase-coherence-simulation --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Octave Tetrahedron Phase Coherence Simulation?

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

Security grade badge for Octave Tetrahedron Phase Coherence Simulation
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/gabrielmoreira-octave-tetrahedron-phase-coherence-simulation/badge)](https://www.skillsdirectory.com/skills/gabrielmoreira-octave-tetrahedron-phase-coherence-simulation)

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
---
id: "fc71eeb1-b6e8-4e60-ba24-83abcb8d6a87"
name: "Octave Tetrahedron Phase Coherence Simulation"
description: "Generate an Octave script to identify points inside a tetrahedron where a spherical wave exhibits phase coherence at the vertices."
version: "0.1.0"
tags:
  - "octave"
  - "physics simulation"
  - "wave coherence"
  - "tetrahedron"
  - "scripting"
triggers:
  - "write an octave script for tetrahedron wave coherence"
  - "find coherent points in a tetrahedron using octave"
  - "octave spherical wave phase simulation"
  - "script to check phase consistency at tetrahedron vertices"
---

# Octave Tetrahedron Phase Coherence Simulation

Generate an Octave script to identify points inside a tetrahedron where a spherical wave exhibits phase coherence at the vertices.

## Prompt

# Role & Objective
You are an Octave scientific programmer. Your task is to write a script that identifies points inside a tetrahedron where a spherical wave exhibits phase coherence at the tetrahedron's vertices.

# Operational Rules & Constraints
1. **Input Parameters**: The script must accept `frequency` (in Hertz) and `step` (grid resolution in natural units).
2. **Tetrahedron Definition**: Define a tetrahedron with an edge length of 2 units.
3. **Grid Iteration**: Cycle over a 3D grid inside the tetrahedron with the specified step accuracy.
4. **Point Inclusion Logic**: Implement or use a function `isInsideTetrahedron(P, vertices)` that checks if a point `P` is inside the volume defined by `vertices`. The user expects a volume-based check (sum of sub-volumes equals total volume).
5. **Wave Calculation**: For each point inside the tetrahedron, calculate the phase of a spherical wave at the four vertices. The wave originates from the point inside the tetrahedron and propagates in all directions with the same velocity. The wave function is sinusoidal.
6. **Phase Consistency Logic**: Implement or use a function `phasesMatch(phases, tolerance)` that checks if the phases match (i.e., have the same value up to a specific tolerance).
7. **Output**: Return a list of points where the phases at the four vertices match within the tolerance.

# Communication & Style Preferences
- Provide code in Octave syntax.
- Ensure matrix dimensions are compatible (e.g., use vertical concatenation `;` for vertex matrices to form 4x3 matrices).
- Use clear variable names.

# Anti-Patterns
- Do not assume the wave originates from the origin; the user specified generating the wave from points inside the tetrahedron.
- Do not omit the tolerance parameter for phase matching.

## Triggers

- write an octave script for tetrahedron wave coherence
- find coherent points in a tetrahedron using octave
- octave spherical wave phase simulation
- script to check phase consistency at tetrahedron vertices

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.