ResearchForge / Calculators
Engineering optimzation·damping-force-calculation

Damping Force Calculation

Given a damper with viscous coefficient and a velocity, calculate the magnitude of the damping force dissipated by the damper. The damping force is proportional to velocity with a negative sign indicating opposition to motion.

✓ All 3 test cases pass.

Inputs

Test cases

These cases run live in your browser every time the page loads. If any fail, the calculator is broken — file an issue.

#InputsExpectedGotStatus
1{"c":2,"velocity":3}-6-6
2{"c":5,"velocity":-2}1010
3{"c":0.5,"velocity":4}-2-2
APIDeveloper APICall this calculator from codeexpand ↓
Endpoint
POST/api/calculators/engineering-optimzation/damping-force-calculation/compute
Inputs (2)
  • cnumberdefault 1
  • velocitynumberdefault 1
Example
curl -sX POST http://localhost:3001/api/calculators/engineering-optimzation/damping-force-calculation/compute \
  -H "Content-Type: application/json" \
  -d '{"inputs":{"c":1,"velocity":1}}'
Try it live
Edit the body below, then click Call API.
Request body
Response
(click Call API to see the response)
full API docs →

Source: Pattern from: Ch1.pdf. Reproduces a standard damping-force-calculation computation; problem text paraphrased.

AI disclosure: Calculator code generated by anthropic/claude-haiku-4-5-20251001; verified by 3 test cases.