vault backup: 2025-01-10 14:13:23

This commit is contained in:
yize 2025-01-10 14:13:23 +08:00
commit c5271fba7a
16 changed files with 143 additions and 37 deletions

1
.gitignore vendored
View File

@ -23,3 +23,4 @@ bin-release/
# Ignore Smart Environment folder
.smart-env
.DS_Store
workspace.json

File diff suppressed because one or more lines are too long

View File

@ -13,7 +13,7 @@
"googleApiKey": "",
"openRouterAiApiKey": "",
"defaultChainType": "llm_chain",
"defaultModelKey": "llama3.2:latest|ollama",
"defaultModelKey": "gemma2:latest|ollama",
"embeddingModelKey": "nomic-embed-text|ollama",
"temperature": 0.1,
"maxTokens": 1000,

View File

@ -4,21 +4,17 @@
"type": "split",
"children": [
{
"id": "0974d266fd98ccc6",
"id": "1ff1aa745237de88",
"type": "tabs",
"children": [
{
"id": "ac38bc1a293c35ce",
"id": "1e0d66e586fd4e4a",
"type": "leaf",
"state": {
"type": "markdown",
"state": {
"file": "力学书籍/理论力学Ⅰ(第8版) (哈尔滨工业大学理论力学教研室) (Z-Library)/auto/理论力学Ⅰ(第8版) (哈尔滨工业大学理论力学教研室) (Z-Library).md",
"mode": "source",
"source": false
},
"type": "empty",
"state": {},
"icon": "lucide-file",
"title": "理论力学Ⅰ(第8版) (哈尔滨工业大学理论力学教研室) (Z-Library)"
"title": "新标签页"
}
}
]
@ -77,7 +73,7 @@
}
],
"direction": "horizontal",
"width": 480.5
"width": 249.5
},
"right": {
"id": "de2dec4e906755e6",
@ -136,11 +132,9 @@
"type": "leaf",
"state": {
"type": "outline",
"state": {
"file": "多体求解器编写/多体+水动 platform+tower debug.md"
},
"state": {},
"icon": "lucide-list",
"title": "多体+水动 platform+tower debug 的大纲"
"title": "大纲"
}
},
{
@ -152,13 +146,23 @@
"icon": "git-pull-request",
"title": "Source Control"
}
},
{
"id": "f96b12d12e968e83",
"type": "leaf",
"state": {
"type": "copilot-chat-view",
"state": {},
"icon": "message-square",
"title": "Copilot"
}
}
],
"currentTab": 4
}
],
"direction": "horizontal",
"width": 386.5
"width": 471.5
},
"left-ribbon": {
"hiddenItems": {
@ -169,13 +173,29 @@
"templates:插入模板": false,
"command-palette:打开命令面板": false,
"copilot:Open Copilot Chat": false,
"obsidian-git:Open Git source control": false,
"smart-connections:Open: View Smart Connections": false,
"smart-connections:Open: Smart Chat Conversation": false
"obsidian-git:Open Git source control": false
}
},
"active": "ac38bc1a293c35ce",
"active": "1e0d66e586fd4e4a",
"lastOpenFiles": [
"Kane-Dynamics-Theory-Applications.pdf",
"多体+耦合求解器/数据结构讨论.md",
"多体+耦合求解器/images/Pasted image 20250110135444.png",
"多体+耦合求解器/images",
"多体+耦合求解器/images/Pasted image 20250110135219.png",
"多体+耦合求解器",
"多体求解器debug/多体+气动 转速 debug.md",
"多体求解器debug/多体+水动 platform+tower debug.md",
"多体求解器debug/images/Pasted image 20250110111923.png",
"多体求解器debug/images",
"力学书籍/理论力学Ⅰ(第8版) (哈尔滨工业大学理论力学教研室) (Z-Library)/auto/理论力学Ⅰ(第8版) (哈尔滨工业大学理论力学教研室) (Z-Library).md",
"conflict-files-obsidian-git.md",
"力学书籍/理论力学Ⅰ(第8版) (哈尔滨工业大学理论力学教研室) (Z-Library)/auto/理论力学Ⅰ(第8版) (哈尔滨工业大学理论力学教研室) (Z-Library).pdf",
"力学书籍/结构动力学 (R. 克拉夫J. 彭津) (Z-Library)/auto/结构动力学 (R. 克拉夫J. 彭津) (Z-Library).pdf",
"力学书籍/结构力学Ⅰ(基础教程) (龙驭球、包世华、袁驷) (Z-Library)/auto/结构力学Ⅰ(基础教程) (龙驭球、包世华、袁驷) (Z-Library).pdf",
"力学书籍/理论力学II (哈尔滨工业大学理论力学教研室 编) (Z-Library)/auto/理论力学II (哈尔滨工业大学理论力学教研室 编) (Z-Library).pdf",
"力学书籍/材料力学I第6版 (刘鸿文) (Z-Library)/auto/材料力学I第6版 (刘鸿文) (Z-Library).pdf",
"力学书籍/材料力学2第6版 (刘鸿文) (Z-Library)/auto/材料力学2第6版 (刘鸿文) (Z-Library).pdf",
"Ai/ollama 设置模型上下文大小.md",
"力学书籍/结构动力学 (R. 克拉夫J. 彭津) (Z-Library)/auto/images/ff6d58c25daf75a738e59c457ad6d1727e768a43040f99c12f870affa8eb9f3e.jpg",
"力学书籍/结构动力学 (R. 克拉夫J. 彭津) (Z-Library)/auto/images/fedca48657e38349fb64944202cad1775def81bca0fe410601430d1cdd5b1efe.jpg",
@ -184,27 +204,11 @@
"力学书籍/结构动力学 (R. 克拉夫J. 彭津) (Z-Library)/auto/images/fb976b71473deeaa6efbd99b9a5da24f6f83316f31cdd73d8d6e17bc9f9babe7.jpg",
"力学书籍/结构动力学 (R. 克拉夫J. 彭津) (Z-Library)/auto/images/fb4c62b6928811718022b460823e8ab7a90666e35e95c36021a3db7b2f8f606e.jpg",
"力学书籍/结构动力学 (R. 克拉夫J. 彭津) (Z-Library)/auto/images/fa92c5ef70bfb40cd85035deade83630f297455ef12eddea12ca09d06f256bf0.jpg",
"力学书籍/结构动力学 (R. 克拉夫J. 彭津) (Z-Library)/auto/images/f9625f236b79345445f801e4a0cbc943fb5cf2b3a9b2ed911c7685c3a5d82315.jpg",
"力学书籍/结构动力学 (R. 克拉夫J. 彭津) (Z-Library)/auto/images/f91df87085ff5b77c9bb6cbcf8fff771bf04ac6576c1d3e29ba89a6000a1f78d.jpg",
"力学书籍/结构动力学 (R. 克拉夫J. 彭津) (Z-Library)/auto/images/f90a65dbb57599c58beacfea9cb3d017f505976e51d1e0dacba0b102aa1190ec.jpg",
"力学书籍/结构动力学 (R. 克拉夫J. 彭津) (Z-Library)/auto/结构动力学 (R. 克拉夫J. 彭津) (Z-Library).md",
"力学书籍/结构动力学 (R. 克拉夫J. 彭津) (Z-Library)/auto/images",
"力学书籍/结构动力学 (R. 克拉夫J. 彭津) (Z-Library)/auto",
"力学书籍/结构动力学 (R. 克拉夫J. 彭津) (Z-Library)",
"力学书籍/结构力学Ⅰ(基础教程) (龙驭球、包世华、袁驷) (Z-Library)/auto/结构力学Ⅰ(基础教程) (龙驭球、包世华、袁驷) (Z-Library).md",
"力学书籍/结构力学Ⅰ(基础教程) (龙驭球、包世华、袁驷) (Z-Library)/auto/images",
"力学书籍/结构力学Ⅰ(基础教程) (龙驭球、包世华、袁驷) (Z-Library)/auto",
"力学书籍/结构力学Ⅰ(基础教程) (龙驭球、包世华、袁驷) (Z-Library)",
"力学书籍/理论力学II (哈尔滨工业大学理论力学教研室 编) (Z-Library)/auto/理论力学II (哈尔滨工业大学理论力学教研室 编) (Z-Library).md",
"力学书籍/理论力学II (哈尔滨工业大学理论力学教研室 编) (Z-Library)/auto/images",
"力学书籍/理论力学II (哈尔滨工业大学理论力学教研室 编) (Z-Library)/auto",
"力学书籍/理论力学II (哈尔滨工业大学理论力学教研室 编) (Z-Library)",
"力学书籍/理论力学Ⅰ(第8版) (哈尔滨工业大学理论力学教研室) (Z-Library)/auto/images",
"力学书籍/理论力学Ⅰ(第8版) (哈尔滨工业大学理论力学教研室) (Z-Library)/auto/理论力学Ⅰ(第8版) (哈尔滨工业大学理论力学教研室) (Z-Library).md",
"力学书籍/材料力学I第6版 (刘鸿文) (Z-Library)/auto/材料力学I第6版 (刘鸿文) (Z-Library).md",
"力学书籍/材料力学2第6版 (刘鸿文) (Z-Library)/auto/材料力学2第6版 (刘鸿文) (Z-Library).md",
"conflict-files-obsidian-git.md",
"Ai/deepSeek Api Key.md",
"多体求解器编写/多体+水动 platform+tower debug.md"
"Ai/deepSeek Api Key.md"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

View File

@ -0,0 +1,96 @@
# 问题1 结构体定义是否需要加大量option
水动 576行
![[Pasted image 20250110135219.png]]
多体 1600行
![[Pasted image 20250110135444.png]]
```
pub struct MorisonMOutput {
    pub memberid: i32,                      // Member ID for requested output [-]
    pub noutloc: i32,                      // The number of requested output locations [-]
    pub nodelocs: Option<Vec<f64>>,         // Normalized locations along user-specified member for the outputs [-]
    pub memberidindx: i32,                 // Index for member in the master list [-]
    pub meshindx1: Option<Vec<i32>>,        // Index of node in Mesh for the start of the member element [-]
    pub meshindx2: Option<Vec<i32>>,        // Index of node in Mesh for the end of the member element [-]
    pub memberindx1: Option<Vec<i32>>,      // Index of Member nodes for the start of the member element [-]
    pub memberindx2: Option<Vec<i32>>,      // Index of Member nodes for the end of the member element [-]
    pub s: Option<Vec<f64>>,                 // Linear interpolation factor between node1 and node2 for the output location [-]
}
```
# 问题2 array数组定义
```
pub struct AD_Init{
    pub Ct_final:                   ArrayBase<OwnedRepr<f64>, Dim<[usize; 3]>>,
    pub Cq_final:                   ArrayBase<OwnedRepr<f64>, Dim<[usize; 3]>>,
    pub CP_final:                   ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>,
    pub position_g:                 Vec<[ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>; 3]>,
    pub trans_disp:                 Vec<[ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>; 3]>,
}
impl AD_Init {
    pub fn new() -> Self {
            Ct_final: ArrayBase::zeros((0, 0, 0)),
            Cq_final: ArrayBase::zeros((0, 0, 0)),
            CP_final: ArrayBase::zeros(0),
            position_g: Vec::new(),
            trans_disp: Vec::new(),
    }
 }
   
```
```
pub struct EDParameterType{
pub r_nodes: Array1<f64>, // 分析节点到轮毂的半径
pub pitch_axis: Array2<f64>, // 分析节点的变桨轴
pub twr_fasf: Array3<f64>, // 塔前后形状函数
pub twr_sssf: Array3<f64>, // 塔侧向形状函数
(ArrayBase<OwnedRepr<f64>, Dim<[usize; 3]>>)
}
impl EDParameterType {
    pub fn new() -> EDParameterType {
        EDParameterType {
        // 初始化一个任意维度
        r_nodes: Array1::zeros(1),
        pitch_axis: Array2::zeros((1, 1)),
        twr_fasf: Array3::zeros((3, 3, 3)),
        twr_sssf: Array3::zeros((3, 3, 3)),
        }
}
}
```
```
// 在代码中根据需要创建维度
p.r_nodes = Array1::zeros(p.bld_nodes as usize);
p.pitch_axis = Array2::zeros((p.num_bl as usize, p.bld_nodes as usize));
p.twr_fasf = Array3::zeros((2, p.t_top_node as usize+ 1, 3));
```

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

View File

@ -0,0 +1,4 @@
# 问题
转速在30s之后一直掉
![[Pasted image 20250110111923.png]]