Skill站外收录 @skilllib/skill-2014279420066869250
boundary-value-problems
提供求解常微分方程与偏微分方程边值问题的系统化数值策略,涵盖打靶法、有限差分法、配置法及斯特姆-刘维尔特征值分析,支持将连续边值问题转化为可计算的初值迭代、线性方程组求解或函数空间投影,并验证解的存在性、正交性与收敛性。
研究 AI 技能
Skills.MD
# Boundary Value Problems
## When to Use
Use this skill when working on boundary-value-problems problems in odes pdes.
## Decision Tree
1. **Problem Classification**
- Two-point BVP: conditions at x=a and x=b?
- Sturm-Liouville: eigenvalue problem?
- Mixed conditions: Dirichlet, Neumann, Robin?
2. **Shooting Method**
- Convert BVP to IVP
- Guess missing initial conditions
- Iterate to satisfy boundary conditions
- `scipy.integrate.solve_ivp` + root finding
3. **Finite Difference Method**
- Discretize domain: x_i = a + i*h
- Replace derivatives with differences: y'' ~ (y_{i+1} - 2y_i + y_{i-1})/h^2
- Solve resulting linear system
- `sympy_compute.py linsolve "tridiagonal_matrix" "boundary_vector"`
4. **Collocation/BVP Solver**
- `scipy.integrate.solve_bvp(ode, bc, x, y_init)`
- Provide initial mesh and guess
- Check residual for accuracy
5. **Eigenvalue Problems**
- Sturm-Liouville form: -(p(x)y')' + q(x)y = lambda*w(x)*y
- Eigenvalues are real if p, w > 0
- Eigenfunctions orthogonal with weight w
- `sympy_compute.py eigenvalues "sturm_liouville_matrix"`
## Tool Commands
### Scipy_Solve_Bvp
```bash
uv run python -c "from scipy.integrate import solve_bvp; import numpy as np; ode = lambda x, y: [y[1], -y[0]]; bc = lambda ya, yb: [ya[0], yb[0]-1]; x = np.linspace(0, np.pi, 10); y = np.zeros((2, 10)); sol = solve_bvp(ode, bc, x, y); print('Solution at pi/2:', sol.sol(np.pi/2)[0])"
```
### Sympy_Linsolve
```bash
uv run python -m runtime.harness scripts/sympy_compute.py linsolve "tridiagonal_matrix" "boundary_vector"
```
### Z3_Sturm_Liouville
```bash
uv run python -m runtime.harness scripts/z3_solve.py prove "eigenvalue_real"
```
## Key Techniques
*From indexed textbooks:*
- [Elementary Differential Equations and... (Z-Library)] Boundary Value Problems and Partial Differential Equations (6th ed. Boston: Academic August 7, 2012 21:05 c10 Sheet number 88 Page number 676 cyan black August 7, 2012 21:05 c11 Sheet number 1 Page number 677 cyan black C H A P T E R Boundary Value Problems and Sturm–Liouville Theory As a result of separating variables in a partial differential equation in Chapter 10, we repeatedly encountered the differential equation X + λX = 0, 0 < x < L with the boundary conditions X (0) = 0, X (L) = 0. This boundary value problem is the prototype of a large class of problems that are important in applied mathematics.
- [Elementary Differential Equations and... (Z-Library)] Nonhomogeneous Boundary Value Problems In this section we discuss how to solve nonhomogeneous boundary value problems for both ordinary and partial differential equations. Most of our attention is directed toward problems in which the differential equation alone is nonhomogeneous, while the boundary conditions are homogeneous. We assume that the solution can be expanded in a series of eigenfunctions of a related homogeneous problem, and then we determine the coefcients in this series so that the nonhomogeneous problem is satised.
- [Elementary Differential Equations and... (Z-Library)] Consider the boundary conditions y, y bounded as x → −1, −1 m = n. August 7, 2012 21:05 c11 Sheet number 46 Page number 722 cyan black Chapter 11. Boundary Value Problems general differential equations or boundary conditions.
- [An Introduction to Numerical Analysis... (Z-Library)] Modern Numerical Methods for Ordinary Wiley, New York. User's guide for DVERK: A subroutine for solving non-stiff ODEs. Keller (1966), Analysis of Numerical Methods.
- [Elementary Differential Equations and... (Z-Library)] Describe in a few words how the solution evolves as time advances. A nonreactive tracer at concentration c0 is continuously introduced into a steady ow at the upstream end of a column of length L packed with a homogeneous granular medium. Assuming that the tracer concentration in the column is initially zero, the boundary value problem that models this process is 0 < x < L, t > 0, t > 0, 0 < x < L, where c(x, t), v, and D are as in Problem 27.
## Cognitive Tools Reference
See `.claude/skills/math-mode/SKILL.md` for full tool documentation.
评论 0
还没有评论,来抢沙发。
相关内容
同类或同场景的收录内容
building-with-kafka-strimzi
在 Kubernetes 上构建基于 Apache Kafka 的事件驱动系统,支持高可靠的消息传递、事务性处理与精确一次语义,结合 Strimzi 运营商实现集群自动化管理,利用 Schema Registry 保障事件模式演进,适用于微服务间解耦通信与实时数据流处理场景。
站外数据与分析
609 0.0
personal-tool-builder
专注于从个人真实痛点出发快速构建实用工具,涵盖命令行程序、本地优先应用和自动化脚本的开发与演进,强调先满足自身需求再逐步扩展,通过持续自用打磨功能,避免过度设计,确保工具简洁有效且长期可维护。
站外商业与营销
196 0.0
threejs-lighting
实现三维场景中的光照与阴影控制,支持多种光源类型及环境光照明,提供从基础布光到高级阴影优化的完整方案,适用于需要真实感渲染或性能平衡的可视化项目。
站外效率工具
442 0.0
aggregation-helper
提供数据聚合场景的自动化辅助能力,涵盖 SQL 查询编写、统计分析建模、可视化方案设计及商业智能配置,支持从需求理解到生产级代码生成的全流程指导。
站外效率工具数据与分析
217 0.0
举报「boundary-value-problems」
举报信息仅审核团队可见,同一资产 24 小时内仅可举报一次