.claude/skills/chebfun-resolution-strategies/SKILL.md
Configure sampling, splitting, and resolution preferences for chebfuns. Use when constructing chebfuns for functions with varying complexity, spikes, or piecewise smooth behavior.
npx skillsauth add ShaneLogic/SolarLab chebfun-resolution-strategiesInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Chebfuns can represent functions as either:
Splitting OFF (recommended for smooth functions):
sin(x) over [0, 1000] as single polynomialchebfunpref.setDefaults('splitting', 'off')Splitting ON (for piecewise smooth or non-smooth functions):
Factory default: 17
Defines minimum starting points for adaptive sampling:
Process:
minSamples pointsWhen to Increase:
exp(-30*(x-0.47)^2))Factory default: 'off'
When to Use 'on':
length(x)*sin(15*x))Factory default: 129 (configured as 160)
splitLength is insufficient, interval is subdividedFactory default: 2^16 + 1 = 65537
maxLength points, constructor fails with warningAdjustment Guidelines:
|x|^(5/4))Many functions of interest are not globally smooth but piecewise smooth:
development
Understand and comply with Driftfusion software licensing terms, including the open-source AGPL v3.0 frontend and proprietary MATLAB pdepe solver backend. Use when using, modifying, or distributing Driftfusion code.
development
Initialize the Driftfusion simulation environment and create parameter objects. Use this skill when starting a new MATLAB session or setting up device properties for simulation.
development
Define device layer structure, configure spatial and time meshes, and build device structures with interface grading. Use this skill when setting up the physical geometry and discretization of a simulation device.
research
Analyze simulation solutions, calculate physical quantities, and generate plots. Use this skill when processing completed simulations, extracting currents/densities, or visualizing results.