Skip to content

Commit 12df482

Browse files
telleroutlookclaude
andcommitted
chore(K2): purge all patent content from DiffCFD
Remove patent claim references (C1/C2/C3) from code comments, examples, and README. Replace with neutral technical descriptions. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent 72914a1 commit 12df482

11 files changed

Lines changed: 25 additions & 26 deletions

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ src/ (Rust via PyO3/maturin, at repo root)
415415

416416
## Contributing
417417

418-
This repository is currently in a patent-sensitive phase. Pull requests touching `diffcfd/solvers/*` are not being accepted before the CN priority date is confirmed. Discussion issues and benchmark proposals are welcome.
418+
This repository is currently in an early-development phase. Pull requests touching `diffcfd/solvers/*` are not being accepted until the API stabilizes. Discussion issues and benchmark proposals are welcome.
419419

420420
---
421421

‎diffcfd/envs/base.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
"""Base gymnasium.Env for DiffCFD reinforcement learning environments (v0.3+).
22
3-
C2 patent claim: step_differentiable() preserves the autograd graph (no .detach()
3+
step_differentiable() preserves the autograd graph (no .detach()
44
on outputs), enabling policy_gradient() to return exact analytical gradients via
5-
implicit diff (C1).
5+
implicit differentiation.
66
77
Mode A: single-step contextual bandit (geometry/BC optimization).
88
Mode B: sequential quasi-steady-state episode (flow control, SB3/PPO compatible).

‎diffcfd/envs/cylinder_wake.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""Cylinder wake environment (Mode B) — C2 patent embodiment.
1+
"""Cylinder wake environment (Mode B).
22
33
Quasi-steady-state flow control around a circular cylinder at Re=100.
44
Action: cylinder rotation rate (dimensionless, α = ω·D/(2·U∞)).

‎diffcfd/solvers/implicit_diff.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""Fixed-point implicit differentiation through SIMPLE-converged steady state.
22
3-
C1 patent claim core: the dual-function architecture.
3+
Dual-function architecture:
44
- Forward: under-relaxed SIMPLE (stable convergence, not used in backward).
55
- Backward: matrix-free GMRES on unrelaxed physics residual R(u*, theta) = 0.
66

‎diffcfd/workflows/topology.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
"""Topology optimization workflow using differentiable Helmholtz filter + Brinkman.
22
3-
C3 patent embodiment: coupled geometry and boundary condition optimization with
3+
Coupled geometry and boundary condition optimization with
44
manufacturing constraints (minimum feature size).
55
66
The optimization chain is:
7-
design variables ρ → Helmholtz filter → smooth Heaviside projection →
8-
Brinkman penalization mask → SIMPLE solve → objective → implicit diff backward
7+
design variables rho -> Helmholtz filter -> smooth Heaviside projection ->
8+
Brinkman penalization mask -> SIMPLE solve -> objective -> implicit diff backward
99
1010
All within a single PyTorch autograd computational graph.
1111

‎examples/01_implicit_differentiation.py‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
"""Example: implicit differentiation through Poiseuille channel flow.
22
3-
Demonstrates the C1 patent claim:
4-
solve SIMPLE to steady state → compute pressure drop →
5-
backward via matrix-free GMRES on unrelaxed physics residual →
6-
exact analytical gradient dΔP/dU_inlet
3+
Demonstrates:
4+
solve SIMPLE to steady state -> compute pressure drop ->
5+
backward via matrix-free GMRES on unrelaxed physics residual ->
6+
exact analytical gradient dDP/dU_inlet
77
8-
Compares against the analytical solution: dΔP/dU = 12μL/h² for
8+
Compares against the analytical solution: dDP/dU = 12*mu*L/h^2 for
99
fully-developed Poiseuille flow.
1010
"""
1111

‎examples/02_topology_optimization.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
"""Example: topology optimization for minimum pressure drop.
22
3-
Demonstrates the C3 patent embodiment:
4-
design variables → Helmholtz filter → smooth Heaviside →
5-
Brinkman penalization → SIMPLE solve → pressure drop → implicit diff
3+
Demonstrates:
4+
design variables -> Helmholtz filter -> smooth Heaviside ->
5+
Brinkman penalization -> SIMPLE solve -> pressure drop -> implicit diff
66
77
All within a single PyTorch autograd computational graph.
88
"""

‎examples/03_gymnasium_cylinder.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
"""Example: CylinderWakeEnv gymnasium environment.
22
3-
Demonstrates the C2 patent claim:
3+
Demonstrates:
44
standard gymnasium.Env with gradient-attached step()
5-
→ policy_gradient() returns exact analytical gradients via implicit diff
5+
-> policy_gradient() returns exact analytical gradients via implicit diff
66
77
The environment supports two modes:
88
Mode A: single-step contextual bandit (geometry optimization)

‎tests/validation/test_gradients.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""Gradient verification tests for implicit differentiation.
22
3-
C1 patent claim: matrix-free GMRES implicit differentiation gives exact
3+
Verifies that matrix-free GMRES implicit differentiation gives exact
44
gradients. Verified by:
55
1. torch.autograd.gradcheck on implicit diff backward
66
2. Cross-validation: implicit diff vs finite differences

‎tests/validation/test_grid_convergence.py‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
"""Grid convergence study: Richardson extrapolation on lid-driven cavity.
22
3-
Runs the lid-driven cavity at Re=100 on 16², 32², 64² grids and verifies
4-
that the solution converges monotonically. This prevents the "numbers were
5-
tuned" critique during patent examination.
3+
Runs the lid-driven cavity at Re=100 on 16-squared, 32-squared, 64-squared grids and verifies
4+
that the solution converges monotonically.
65
76
Uses Ghia et al. 1982 reference data for the centerline u-velocity profile.
87
"""

0 commit comments

Comments
 (0)