CLARKE2(9)

πŸ“¦
version 2.9.4 Β· 4 versions
, in ubuntu resolute, ubuntu stonking

πŸ’– CLARKE2 πŸ’–

okay bestie, so this one lives in the HAL Component section of the manual β€” like, section 9, kernel/dev territory, iykyk. it's called clarke2 and it is the two-input version of the Clarke transform. let's get into it πŸ’…


✨ NAME ✨

clarke2 β€” Two input version of Clarke transform πŸ¦‹


✨ SYNOPSIS ✨

loadrt clarke2 [count=N|names=name1[,name2...]]

✨ DESCRIPTION ✨

so the Clarke transform is that girl πŸ’… she translates a vector quantity from a three phase system (three components, sitting 120 degrees apart, iconic geometry fr) over to a two phase Cartesian system. glow up, honestly.

clarke2 implements a special case of the Clarke transform, and she's lowkey efficient about it β€” she only needs two of the three input phases. here's the tea β˜•: in a three wire three phase system, the sum of the three phase currents or voltages must always be zero. always. no cap. so as a result, only two of the three are actually needed to completely define the current or voltage. like, the third one is just sitting there being redundant, we love her but she is not needed.

so clarke2 straight up assumes the sum is zero, which means it only uses phases A and B of the input. and because the H (homopolar) output will always be zero in this case, it is not generated at all. bye bestie, we don't do zero outputs here πŸŽ€


✨ FUNCTIONS ✨

  • clarke2.N β€” requires a floating-point thread ⭐ (so like, don't try to run her on an integer thread, she will simply not vibe)

✨ PINS ✨

  • clarke2.N.a float in
  • clarke2.N.b float in
    • first two phases of three phase input 🌸 (these are your A and B girls, the only two we need)
  • clarke2.N.x float out
  • clarke2.N.y float out
    • cartesian components of output 🌈 (this is where the transform shows off)

✨ SEE ALSO ✨

  • clarke3(9) β€” for the general case, if you need all three phases in your life πŸ‘‘
  • clarkeinv(9) β€” for the inverse transform, aka the way back πŸ¦‹

✨ AUTHOR ✨

John Kasunich β€” the icon who made this happen πŸ™Œ


✨ LICENSE ✨

GPL β€” the people's license, periodt πŸ’œ


ngl, a whole lot of math happened so you could run clarke2 on two thirds of your data. respect the hustle 🫢

okay that's the whole page!! this was brought to you by the fine folks at LinuxCNC Documentation, dated 2026-03-17 πŸ’– mwah, go load some realtime components bestie βœ¨πŸ’…

πŸ“¦ where this page comes from