From 7265fa54a703b388217ce16d1c5dd89192dfeb6e Mon Sep 17 00:00:00 2001 From: yize Date: Thu, 9 Jan 2025 16:21:39 +0800 Subject: [PATCH] vault backup: 2025-01-09 16:21:39 --- .gitignore | 6 +++ .obsidian/workspace.json | 23 ++++++++---- Ai/ollama 设置模型上下文大小.md | 21 ++++++++++- .../多体+水动 platform+tower debug.md | 37 +++++-------------- 4 files changed, 51 insertions(+), 36 deletions(-) diff --git a/.gitignore b/.gitignore index 5d947ca..711812f 100644 --- a/.gitignore +++ b/.gitignore @@ -16,3 +16,9 @@ bin-release/ # Project files, i.e. `.project`, `.actionScriptProperties` and `.flexProperties` # should NOT be excluded as they contain compiler settings and other important # information for Eclipse / Flash Builder. + + + + +# Ignore Smart Environment folder +.smart-env \ No newline at end of file diff --git a/.obsidian/workspace.json b/.obsidian/workspace.json index 293c9c7..da642d7 100644 --- a/.obsidian/workspace.json +++ b/.obsidian/workspace.json @@ -13,12 +13,12 @@ "state": { "type": "markdown", "state": { - "file": "多体求解器编写/多体+水动 platform+tower debug.md", + "file": "Ai/ollama 设置模型上下文大小.md", "mode": "source", "source": false }, "icon": "lucide-file", - "title": "多体+水动 platform+tower debug" + "title": "ollama 设置模型上下文大小" } } ] @@ -136,9 +136,11 @@ "type": "leaf", "state": { "type": "outline", - "state": {}, + "state": { + "file": "多体求解器编写/多体+水动 platform+tower debug.md" + }, "icon": "lucide-list", - "title": "大纲" + "title": "多体+水动 platform+tower debug 的大纲" } }, { @@ -156,7 +158,7 @@ } ], "direction": "horizontal", - "width": 518.5 + "width": 435.5 }, "left-ribbon": { "hiddenItems": { @@ -167,9 +169,14 @@ "templates:插入模板": false, "command-palette:打开命令面板": false, "copilot:Open Copilot Chat": false, - "obsidian-git:Open Git source control": false + "obsidian-git:Open Git source control": false, + "smart-connections:Open: View Smart Connections": false, + "smart-connections:Open: Smart Chat Conversation": false } }, - "active": "8080c9209794d082", - "lastOpenFiles": [] + "active": "ac38bc1a293c35ce", + "lastOpenFiles": [ + "Ai/deepSeek Api Key.md", + "多体求解器编写/多体+水动 platform+tower debug.md" + ] } \ No newline at end of file diff --git a/Ai/ollama 设置模型上下文大小.md b/Ai/ollama 设置模型上下文大小.md index a6f0438..ae2d3e8 100644 --- a/Ai/ollama 设置模型上下文大小.md +++ b/Ai/ollama 设置模型上下文大小.md @@ -1 +1,20 @@ -https://github.com/cline/cline/discussions/241 \ No newline at end of file +https://github.com/cline/cline/discussions/241 + +terminal + +touch modelfile +打开modelfile +vim modelfile + +粘贴 (类似) +``` +FROM qwen2.5:14b +PARAMETER num_ctx 65536 +``` +wq + +``` +ollama create -f modelfile qwen2.5:14b:custom +``` + +ollama show qwen2.5:14b:custom \ No newline at end of file diff --git a/多体求解器编写/多体+水动 platform+tower debug.md b/多体求解器编写/多体+水动 platform+tower debug.md index 428eb10..fad13b1 100644 --- a/多体求解器编写/多体+水动 platform+tower debug.md +++ b/多体求解器编写/多体+水动 platform+tower debug.md @@ -1,18 +1,11 @@ -# 结果监视6个量 -- TwrTpTDxi - - 塔架顶点/偏航轴前后(平移)偏转量(相对于未偏转位置),包括所有平台运动 +# 结果监视2个量 + - TwrTpTDzi - Tower-top / yaw bearing axial (translational) deflection (relative to the undeflected position) including all platform motions -- YawBrTVxp - - Tower-top / yaw bearing fore-aft (translational) **velocity** (absolute) + - YawBrTVzp - Tower-top / yaw bearing axial (translational) **velocity** (absolute) -- PtfmRDyi - - Platform pitch tilt angular (rotational) displacement. In ADAMS, it is output as an Euler angle computed as the 2nd rotation in the yaw-pitch-roll rotation sequence. It is not output as an Euler angle in FAST, which assumes small rotational platform displacements, so that the rotation sequence does not matter. - - 平台俯仰倾斜角位移(旋转)。在 ADAMS 中,它作为欧拉角输出,计算为 yaw-pitch-roll 旋转序列中的第二个旋转。在 FAST 中,它不以欧拉角输出,因为 FAST 假设平台的旋转位移很小,因此旋转顺序无关紧要。 -- PtfmRVyt - - Platform pitch tilt angular (rotational) velocity ## TwrTpTDzi @@ -23,37 +16,27 @@ m%AllOuts(TwrTpTDzi) = m%RtHS%rO(2) - y%TowerLn2Mesh%Position(3,J) + p%PtfmR rO !< Position vector from inertial frame origin to tower-top / base plate (point O) [m] -## YawBrTVxp YawBrTVzp 前后 Yaw平动速度 +# YawBrTVzp Yaw平动速度 ``` -m%AllOuts(YawBrTVxp) = DOT_PRODUCT( m%RtHS%LinVelEO, m%CoordSys%b1 ) + m%AllOuts(YawBrTVzp) = DOT_PRODUCT( m%RtHS%LinVelEO, m%CoordSys%b2 ) ``` LinVelEO !< Linear velocity of the base plate (point O) in the inertia frame (body E for earth) [-] -b1 !< Vector / direction b1 (= xp from the IEC coord. system) [-] b2 !< Vector / direction b2 (= zp from the IEC coord. system) [-] -### LinVelEO 差距较大 +### LinVelEO 少许差距 ``` rt_hs.lin_vel_eo = lin_vel_x_o.clone() + rt_hs.lin_vel_ez.clone(); for i in 0..NPX{ rt_hs.lin_vel_eo = rt_hs.lin_vel_eo.clone() + x.qdt[PX[i] as usize - 1] * rt_hs.plin_vel_eo.slice(s![PX[i] - 1, 0, ..]).to_owned(); } ``` +LinVelXO (3) ! "Relative linear velocity of the tower-top / base plate (point O) in the platform (body X)" +LinVelEZ !< Linear velocity of platform reference (point Z) in the inertia frame [-] -#### lin_vel_x_o有差距 +LinVelEO !< Linear velocity of the base plate (point O) in the inertia frame (body E for earth) [-] +解得QDT少量差距,导致LinVelEO差距 -#### rt_hs.lin_vel_ez有差距 - -### b1[3]少许差距 - -# pitch 角度 角速度 -``` -m%AllOuts( PtfmRDyi) = x%QT (DOF_P )*R2D -m%AllOuts( PtfmRVyt) = -DOT_PRODUCT( m%RtHS%AngVelEX, m%CoordSys%a3 )*R2D -``` - -AngVelEX !< Angular velocity of the platform (body X) in the inertia frame (body E for earth) [-] -a3 !< Vector / direction a3 (= -yt from the IEC coord. system) [-] \ No newline at end of file