This commit is contained in:
yz 2025-01-16 15:27:27 +08:00
parent 39680829e5
commit c9b78dfa80
4 changed files with 41 additions and 47 deletions

View File

@ -13,16 +13,12 @@
"googleApiKey": "", "googleApiKey": "",
"openRouterAiApiKey": "", "openRouterAiApiKey": "",
"defaultChainType": "llm_chain", "defaultChainType": "llm_chain",
<<<<<<< HEAD
"defaultModelKey": "gemma2:latest|ollama",
=======
"defaultModelKey": "phi4:latest|ollama", "defaultModelKey": "phi4:latest|ollama",
>>>>>>> 43e7b08163ff98d031f47a55e6d8abfb871edb14
"embeddingModelKey": "nomic-embed-text|ollama", "embeddingModelKey": "nomic-embed-text|ollama",
"temperature": 0.1, "temperature": 0.1,
"maxTokens": 1000, "maxTokens": 1000,
"contextTurns": 15, "contextTurns": 15,
"userSystemPrompt": "翻译成中文", "userSystemPrompt": "",
"openAIProxyBaseUrl": "", "openAIProxyBaseUrl": "",
"openAIEmbeddingProxyBaseUrl": "", "openAIEmbeddingProxyBaseUrl": "",
"stream": true, "stream": true,
@ -47,47 +43,21 @@
"provider": "openai", "provider": "openai",
"enabled": true, "enabled": true,
"isBuiltIn": true, "isBuiltIn": true,
"core": true, "core": true
"baseUrl": "",
"apiKey": ""
}, },
{ {
"name": "gpt-4o-mini", "name": "gpt-4o-mini",
"provider": "openai", "provider": "openai",
"enabled": true, "enabled": true,
"isBuiltIn": true, "isBuiltIn": true,
"core": true, "core": true
"baseUrl": "",
"apiKey": ""
}, },
{ {
"name": "claude-3-5-sonnet-latest", "name": "claude-3-5-sonnet-latest",
"provider": "anthropic", "provider": "anthropic",
"enabled": true, "enabled": true,
"isBuiltIn": true, "isBuiltIn": true,
"core": true, "core": true
"baseUrl": "",
"apiKey": ""
},
{
"name": "llama3.2:latest",
"provider": "ollama",
"baseUrl": "https://possibly-engaged-filly.ngrok-free.app",
"apiKey": "",
"enabled": true,
"isBuiltIn": false,
"enableCors": true,
"isEmbeddingModel": false
},
{
"name": "gemma2:latest",
"provider": "ollama",
"baseUrl": "https://possibly-engaged-filly.ngrok-free.app",
"apiKey": "",
"enabled": true,
"isBuiltIn": false,
"enableCors": true,
"isEmbeddingModel": false
}, },
{ {
"name": "phi4:latest", "name": "phi4:latest",
@ -98,6 +68,16 @@
"isBuiltIn": false, "isBuiltIn": false,
"enableCors": true, "enableCors": true,
"isEmbeddingModel": false "isEmbeddingModel": false
},
{
"name": "llama3.2:latest",
"provider": "ollama",
"baseUrl": "https://possibly-engaged-filly.ngrok-free.app",
"apiKey": "",
"enabled": true,
"isBuiltIn": false,
"enableCors": true,
"isEmbeddingModel": false
} }
], ],
"activeEmbeddingModels": [ "activeEmbeddingModels": [

View File

@ -3617,31 +3617,34 @@ and the ellipsoid appears as shown in Fig. 3.9.2. Furthermore, the moment of ine
# GENERALIZED FORCES # GENERALIZED FORCES
The necessity to cross-multiply a vector $\mathbf{v}$ with the position vector ${\mathfrak{p}}^{A B}$ from a point $A$ to a point $B$ arises frequently [see, for example, Eqs. (2.7.1) and (3.5.27)]. Now, ${\bf p}^{A B}\mathrm{\bf~\times~}{\bf v}={\bf p}^{A C}\mathrm{\bf~\times~}{\bf v},$ where $\mathfrak{p}^{A C}$ is the position vector from $A$ to any point C of the line L that is parallel to v and passes through B; and, when C is chosen properly, it may be easier to evaluate $\mathsf{\pmb{p}}^{A C}$ x v than $\boldsymbol{\mathsf{p}}^{A B}\,\times\,\boldsymbol{\mathsf{v}}.$ This fact provides the motivation for introducing the concepts of “bound" vectors and “moments" of such vectors as in Sec. 4.1. The terms “couple” and “torque,” which have to do with special sets of bound vectors, are defined in Sec. 4.2, and the concepts of "equivalence" and “replacement,” each of which involves two sets of bound vectors, are discussed in Sec. 4.3. This material then is used throughout the rest of the chapter to facilitate the forming of expressions for quantities that play a preeminent role in connection with dynamical equations of motion, namely, two kinds of generalized forces. Sections 4.4-4.10 deal with generalized active forces, which come into play whenever the particles of a system are subject to the actions of contact and/or distance forces. Generalized inertia forces, which depend on both the motion and the mass distribution of a system, are discussed in Sec. 4.11. Mastery of the material brings one into position to formulate dynamical equations for any system possessing a finite number of degrees of fredom, as may be ascertained by reading Sec. 6.1. The necessity to cross-multiply a vector $\mathbf{v}$ with the position vector ${\mathfrak{p}}^{A B}$ from a point $A$ to a point $B$ arises frequently [see, for example, Eqs. (2.7.1) and (3.5.27)]. Now, ${\bf p}^{A B}\mathrm{\bf~\times~}{\bf v}={\bf p}^{A C}\mathrm{\bf~\times~}{\bf v},$ where $\mathfrak{p}^{A C}$ is the position vector from $A$ to any point C of the line L that is parallel to v and passes through B; and, when C is chosen properly, it may be easier to evaluate $\mathsf{\pmb{p}}^{A C}$ x v than $\boldsymbol{\mathsf{p}}^{A B}\,\times\,\boldsymbol{\mathsf{v}}.$ This fact provides the motivation for introducing the concepts of “bound" vectors and “moments" of such vectors as in Sec. 4.1. The terms “couple” and “torque,” which have to do with special sets of bound vectors, are defined in Sec. 4.2, and the concepts of "equivalence" and “replacement,” each of which involves two sets of bound vectors, are discussed in Sec. 4.3. This material then is used throughout the rest of the chapter to facilitate the forming of expressions for quantities that play a preeminent role in connection with dynamical equations of motion, namely, two kinds of generalized forces. Sections 4.4-4.10 deal with generalized active forces, which come into play whenever the particles of a system are subject to the actions of contact and/or distance forces. Generalized inertia forces, which depend on both the motion and the mass distribution of a system, are discussed in Sec. 4.11. Mastery of the material brings one into position to formulate dynamical equations for any system possessing a finite number of degrees of freedom, as may be ascertained by reading Sec. 6.1.
# 4.1 MOMENT ABOUT A POINT, BOUND VECTORS, RESULTANT # 4.1 MOMENT ABOUT A POINT, BOUND VECTORS, RESULTANT
Of the infinitely many lines that are parallel to every vector v, a particular one, say, $L$ , called the line of action of v, must be selected before M, the moment of $\mathbf{v}$ aboutapoint $P$ , can be evaluated, for M is defined as Of the infinitely many lines that are parallel to every vector v, a particular one, say, $L$ , called the line of action of v, must be selected before M, the moment of $\mathbf{v}$ aboutapoint $P$ , can be evaluated, for M is defined as
$$
M\triangleq{p}\times{v}
$$
wherepis thepositionvector from $P$ to any point on $L$ Once $L$ hasbeenspecified, $\gamma$ is said to be a bound vector, and it is customary to show $\mathbf{v}$ on $L$ in pictorial representations of $\gamma$ A vector for which no line of action is specified is called a free vector. where $p$ is the position vector from $P$ to any point on $L$ Once $L$ has been specified, $v$ is said to be a bound vector, and it is customary to show $\mathbf{v}$ on $L$ in pictorial representations of $v$. A vector for which no line of action is specified is called a free vector.
The resultant $\mathbf{R}$ ofa set $\boldsymbol{S}$ of vectors $\mathbf{\nu}_{1},\dots,\mathbf{\nu}_{v}$ is defined as The resultant $\mathbf{R}$ of a set $\boldsymbol{S}$ of vectors $\mathbf{\nu}_{1},\dots,\mathbf{\nu}_{v}$ is defined as
$$ $$
\mathbb{R}\triangleq\sum_{i=1}^{\nu}\mathbb{v}_{i} {R}\triangleq\sum_{i=1}^{\nu}{v}_{i}
$$ $$
and,if $\mathbf{v}_{1},\ldots,\mathbf{v}_{\nu}$ are bound vectors, the sum of their moments about a point $P$ is called the moment of S about P. and,if $\mathbf{v}_{1},\ldots,\mathbf{v}_{\nu}$ are bound vectors, the sum of their moments about a point $P$ is called the moment of S about P.
At times, it is convenient to regard the resultant $\mathbf{k}$ of a set ${\cal{S}}$ of boundvectors $\mathbf{\nu}_{1},\dots,\mathbf{v}_{\nu}$ as a bound vector. Suppose, for example, that $\mathbf{M}^{\mathbf{s}/P}$ and ${\bf{M}}^{s/Q}$ denote the moments of ${\cal{S}}$ about points $P$ and $\mathcal{Q}$ respectivly, and $\mathbf{R}$ isregarded as abound vector whose line of action passesthrough $\boldsymbol{Q}$ . Then one can find ${\bf M}^{{\bf S}/{P}}$ simply by adding to $\mathbf{M}^{S/Q}$ themoment of Rabout $P$ for At times, it is convenient to regard the resultant $R$ of a set ${\cal{S}}$ of boundvectors $\mathbf{\nu}_{1},\dots,\mathbf{v}_{\nu}$ as a bound vector. Suppose, for example, that $\mathbf{M}^{\mathbf{S}/P}$ and ${\bf{M}}^{S/Q}$ denote the moments of ${\cal{S}}$ about points $P$ and $\mathcal{Q}$ respectivly, and $\mathbf{R}$ isregarded as abound vector whose line of action passesthrough $\boldsymbol{Q}$ . Then one can find ${\bf M}^{{\bf S}/{P}}$ simply by adding to $\mathbf{M}^{S/Q}$ themoment of Rabout $P$ for
$$ $$
\mathbf{M}^{S/P}=\mathbf{M}^{S/Q}+\mathbf{r}^{P Q}\times\mathbf{R} \mathbf{M}^{S/P}=\mathbf{M}^{S/Q}+\mathbf{r}^{P Q}\times\mathbf{R}
$$ $$
Where $\mathbf{r}^{P Q}$ is the positionvector from $P$ to $\mathcal{Q}$ Where $\mathbf{r}^{P Q}$ is the position vector from $P$ to $\mathcal{Q}$
DerivationLet and be the position vectors from $P$ and $\mathcal{Q}$ respetivly,to a $\mathbf{p}_{i}$ ${\bf q}_{i}$ Derivation Let and be the position vectors from $P$ and $\mathcal{Q}$ respetivly,to a $\mathbf{p}_{i}$ ${\bf q}_{i}$
point on the line of action $L_{i}$ of $\mathbf{v}_{i}\,(i=1,\ldots,\nu)$ ,and let be the position vector point on the line of action $L_{i}$ of $\mathbf{v}_{i}\,(i=1,\ldots,\nu)$ ,and let be the position vector
from $P$ to $\mathcal{Q}$ , as shown in Fig. 4.1.1. Then, by defnition, from $P$ to $\mathcal{Q}$ , as shown in Fig. 4.1.1. Then, by defnition,
@ -3726,7 +3729,7 @@ $$
A couple is a set of bound vectors (see Sec. 4.1) whose resultant (see Sec.4.1) is equal to zero.A couple consisting of only two vectors is called a simple couple. Hence, the vectors forming a simple couple necessarily have equal magnitudes andoppositedirections. A couple is a set of bound vectors (see Sec. 4.1) whose resultant (see Sec.4.1) is equal to zero.A couple consisting of only two vectors is called a simple couple. Hence, the vectors forming a simple couple necessarily have equal magnitudes andoppositedirections.
Couples are not vectors,for a set of vectors is not a vector, any more than a set of points is a point; but there exists a unique vector, called the torque of the couple,that is intimately associated with a couple,namely,the moment of the couple about a point. It is unique because, as can be seen by reference to Eq. (4.1.3), a couplehas thesamemomentabout allpoints. Couples are not vectors, for a set of vectors is not a vector, any more than a set of points is a point; but there exists a unique vector, called the torque of the couple, that is intimately associated with a couple, namely, the moment of the couple about a point. It is unique because, as can be seen by reference to Eq. (4.1.3), a couple has the same moment about all points.
Example Four forces, $\mathbf{F}_{1},\ldots,\mathbf{F}_{4}$ , have the lines of action shown in Fig. 4.2.1, and the magnitudes of $\mathbf{F}_{1},\ldots,\mathbf{F}_{4}$ are proportional to the lengths of the lines $A B$ ,BC, $C D$ ,and $D A$ ,respectively; that is, Example Four forces, $\mathbf{F}_{1},\ldots,\mathbf{F}_{4}$ , have the lines of action shown in Fig. 4.2.1, and the magnitudes of $\mathbf{F}_{1},\ldots,\mathbf{F}_{4}$ are proportional to the lengths of the lines $A B$ ,BC, $C D$ ,and $D A$ ,respectively; that is,
@ -3856,7 +3859,7 @@ The method just used to arrive at Eq. (14) has one major faw, which is that it i
# 4.4 GENERALIZED ACTIVE FORCES # 4.4 GENERALIZED ACTIVE FORCES
Ⅱ $\mathbf{\dot{\boldsymbol{u}}}_{1},\ldots,\mathbf{\boldsymbol{u}}_{n}$ are generalized speeds for a simple nonholonomic system $s$ possessing $p$ degrees o freedom in a reference frame $A$ (see Sec.2.13), $p$ quantities $\boldsymbol{\tilde{F}}_{1},...,\boldsymbol{\tilde{F}}_{p}$ callednonholonomicgeneralizedactiveforcesfor $s$ .n $A$ and $n$ quantities $F_{1},\ldots,F_{n}$ called holonomic generalized active forces for $s$ in $A$ , are defined as If $\mathbf{{\boldsymbol{u}}}_{1},\ldots,\mathbf{\boldsymbol{u}}_{n}$ are generalized speeds for a simple nonholonomic system $s$ possessing $p$ degrees of freedom in a reference frame $A$ (see Sec.2.13), $p$ quantities $\boldsymbol{\tilde{F}}_{1},...,\boldsymbol{\tilde{F}}_{p}$ callednonholonomicgeneralizedactiveforcesfor $s$ .n $A$ and $n$ quantities $F_{1},\ldots,F_{n}$ called holonomic generalized active forces for $s$ in $A$ , are defined as
$$ $$
\widetilde{F}_{r}\triangleq\sum_{i\,=\,1}^{\nu}\widetilde{\mathbf{v}}_{r}^{\,\,P_{i}}\cdot{\mathbf{R}}_{i}\qquad(r=1,\ldots,p) \widetilde{F}_{r}\triangleq\sum_{i\,=\,1}^{\nu}\widetilde{\mathbf{v}}_{r}^{\,\,P_{i}}\cdot{\mathbf{R}}_{i}\qquad(r=1,\ldots,p)
@ -3878,7 +3881,7 @@ $$
As in the case of holonomic and nonholonomic partial angular velocities and partial velocities, one can generally omit the adjectives “holonomic” and “nonholonomic” when speaking of generalized forces, but the tilde notation should be used to distinguish the two kinds of generalized active forces from each other. As in the case of holonomic and nonholonomic partial angular velocities and partial velocities, one can generally omit the adjectives “holonomic” and “nonholonomic” when speaking of generalized forces, but the tilde notation should be used to distinguish the two kinds of generalized active forces from each other.
Derivation Referring to Eq. (2.14.17) to express $\tilde{\mathbf{v}}_{r}^{\;\,P_{i}}\;(r=1,\dots,p)$ in termsof $\mathbf{v}_{s}^{\,\,p_{i}}$ $s=p+1,\ldots,n)$ ,onehas Derivation Referring to Eq. (2.14.17) to express $\tilde{\mathbf{v}}_{r}^{\;\,P_{i}}\;(r=1,\dots,p)$ in terms of $\mathbf{v}_{s}^{\,\,p_{i}}$ $s=p+1,\ldots,n)$ ,one has
$$ $$
\begin{array}{l}{{\displaystyle{\widetilde F}_{r}=\sum_{\scriptscriptstyle(1)\;i=1}^{\nu}\left({\bf v}_{r}{}^{P_{i}}+\sum_{\scriptscriptstyle s=p+1}^{n}{\bf v}_{s}{}^{P_{i}}A_{s r}\right)\cdot{\bf R}_{i}}\ ~}\\ {{\displaystyle=\sum_{i=1}^{\nu}{\bf v}_{r}{}^{P_{i}}\cdot{\bf R}_{i}+\sum_{\scriptscriptstyle s=p+1}^{n}\left(\sum_{\scriptscriptstyle i=1}^{\nu}{\bf v}_{s}{}^{P_{i}}\cdot{\bf R}_{i}\right)A_{s r}}\qquad(r=1,\ldots,p)}\end{array} \begin{array}{l}{{\displaystyle{\widetilde F}_{r}=\sum_{\scriptscriptstyle(1)\;i=1}^{\nu}\left({\bf v}_{r}{}^{P_{i}}+\sum_{\scriptscriptstyle s=p+1}^{n}{\bf v}_{s}{}^{P_{i}}A_{s r}\right)\cdot{\bf R}_{i}}\ ~}\\ {{\displaystyle=\sum_{i=1}^{\nu}{\bf v}_{r}{}^{P_{i}}\cdot{\bf R}_{i}+\sum_{\scriptscriptstyle s=p+1}^{n}\left(\sum_{\scriptscriptstyle i=1}^{\nu}{\bf v}_{s}{}^{P_{i}}\cdot{\bf R}_{i}\right)A_{s r}}\qquad(r=1,\ldots,p)}\end{array}
@ -3886,7 +3889,7 @@ $$
and use of Eqs. (2) then leads immediately to Eqs. (3). and use of Eqs. (2) then leads immediately to Eqs. (3).
Example In Fig. 4.4.1, $\boldsymbol{P}_{1}$ and $P_{2}$ designate particles of masses $m_{1}$ and $m_{2}$ that can slidefreelyin a smooth tube $T$ and are attached to light linear springs $\sigma_{1}$ and $o_{2}$ having spring constants $k_{1}$ and $k_{2}$ and “natural" lengths $L_{1}$ and $L_{2}$ $T$ ismadetorotate aboutafixedhorizontal axispassingthroughoneend of $T$ in such a way that the anglebetween thevertical and the axis of $T$ is a prescribed function $\theta(t)$ of the time $t$ Generalized active forces $\boldsymbol{F}_{1}$ and $\boldsymbol{F}_{2}$ associatedwithgeneralizedspeeds $\boldsymbol{u}_{1}$ and $u_{2}$ defined as Example In Fig. 4.4.1, $\boldsymbol{P}_{1}$ and $P_{2}$ designate particles of masses $m_{1}$ and $m_{2}$ that can slide freely in a smooth tube $T$ and are attached to light linear springs $\sigma_{1}$ and $o_{2}$ having spring constants $k_{1}$ and $k_{2}$ and “natural" lengths $L_{1}$ and $L_{2}$ $T$ is made to rotate aboutafixedhorizontal axispassingthroughoneend of $T$ in such a way that the anglebetween thevertical and the axis of $T$ is a prescribed function $\theta(t)$ of the time $t$ Generalized active forces $\boldsymbol{F}_{1}$ and $\boldsymbol{F}_{2}$ associatedwithgeneralizedspeeds $\boldsymbol{u}_{1}$ and $u_{2}$ defined as
$$ $$
u_{r}\triangleq\dot{q}_{r}\qquad(r=1,2) u_{r}\triangleq\dot{q}_{r}\qquad(r=1,2)

View File

@ -0,0 +1,11 @@
{
"nodes":[
{"id":"4b7faf7953451d56","x":-140,"y":-160,"width":250,"height":60,"type":"text","text":"1、debug转速"},
{"id":"24b6d0ae8c62a4eb","x":-140,"y":-20,"width":250,"height":80,"type":"text","text":"2、Kane原理理解\n- 模态叠加法理解"},
{"id":"d0a44ee1cb295fda","x":-140,"y":120,"width":250,"height":100,"type":"text","text":"3、增加自由度对应的广义主动力、惯性力如何推导"},
{"id":"e52009c9149e427f","x":160,"y":-160,"width":250,"height":60,"type":"text","text":"模块稳定性"}
],
"edges":[
{"id":"2a6d49446576cbc8","fromNode":"4b7faf7953451d56","fromSide":"right","toNode":"e52009c9149e427f","toSide":"left"}
]
}

View File

@ -5,8 +5,8 @@
{"id":"5eaa425c204bf600","type":"text","text":"**广义**惯性力","x":40,"y":-140,"width":250,"height":50}, {"id":"5eaa425c204bf600","type":"text","text":"**广义**惯性力","x":40,"y":-140,"width":250,"height":50},
{"id":"7351d2bbb065d539","type":"text","text":"动力学 ","x":-210,"y":40,"width":250,"height":60}, {"id":"7351d2bbb065d539","type":"text","text":"动力学 ","x":-210,"y":40,"width":250,"height":60},
{"id":"e398416e55019686","type":"text","text":"运动学","x":-210,"y":220,"width":250,"height":60}, {"id":"e398416e55019686","type":"text","text":"运动学","x":-210,"y":220,"width":250,"height":60},
{"id":"38d3d1a313c094ee","x":-280,"y":340,"width":250,"height":60,"type":"text","text":"广义坐标"}, {"id":"38d3d1a313c094ee","type":"text","text":"广义坐标","x":-280,"y":340,"width":250,"height":60},
{"id":"8ec17237cebe7433","x":60,"y":340,"width":250,"height":60,"type":"text","text":"广义速率"} {"id":"8ec17237cebe7433","type":"text","text":"广义速率","x":60,"y":340,"width":250,"height":60}
], ],
"edges":[ "edges":[
{"id":"647c1b45edc92b02","fromNode":"9461f7dd96103316","fromSide":"bottom","toNode":"0c8534c8ba68c9a6","toSide":"top"}, {"id":"647c1b45edc92b02","fromNode":"9461f7dd96103316","fromSide":"bottom","toNode":"0c8534c8ba68c9a6","toSide":"top"},