agentsclimarketplace

Octave tetrahedron phase coherence simulation

Skill ECNU-ICALK/AutoSkill/SkillBank/ConvSkill/english_gpt4_8/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.From its SKILL.md

Install
npx -y skills add ECNU-ICALK/AutoSkill --skill octave-tetrahedron-phase-coherence-simulation

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.

SKILL.md

2.7 KB, 494 tokens by cl100k_base, as published. Nobody here has run it

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

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.