Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
8cf896bcee
1
.gitignore
vendored
1
.gitignore
vendored
@ -23,3 +23,4 @@ bin-release/
|
||||
# Ignore Smart Environment folder
|
||||
.smart-env
|
||||
.DS_Store
|
||||
workspace.json
|
||||
|
1
.obsidian/copilot-index-ef6af226357d1e8b24528ffe939abb69.json
vendored
Normal file
1
.obsidian/copilot-index-ef6af226357d1e8b24528ffe939abb69.json
vendored
Normal file
File diff suppressed because one or more lines are too long
2
.obsidian/plugins/copilot/data.json
vendored
2
.obsidian/plugins/copilot/data.json
vendored
@ -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,
|
||||
|
41
.obsidian/workspace.json
vendored
41
.obsidian/workspace.json
vendored
@ -34,14 +34,16 @@
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "89370128a9c444bc",
|
||||
"id": "b7ab4945f4ef1b76",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "pdf",
|
||||
"type": "markdown",
|
||||
"state": {
|
||||
"file": "Kane-Dynamics-Theory-Applications.pdf"
|
||||
"file": "力学书籍/Kane-Dynamics-Theory-Applications/auto/Kane-Dynamics-Theory-Applications.md",
|
||||
"mode": "source",
|
||||
"source": false
|
||||
},
|
||||
"icon": "lucide-file-text",
|
||||
"icon": "lucide-file",
|
||||
"title": "Kane-Dynamics-Theory-Applications"
|
||||
}
|
||||
},
|
||||
@ -58,7 +60,7 @@
|
||||
}
|
||||
}
|
||||
],
|
||||
"currentTab": 1
|
||||
"currentTab": 2
|
||||
}
|
||||
],
|
||||
"direction": "vertical"
|
||||
@ -114,7 +116,7 @@
|
||||
}
|
||||
],
|
||||
"direction": "horizontal",
|
||||
"width": 587.5
|
||||
"width": 431.5
|
||||
},
|
||||
"right": {
|
||||
"id": "de2dec4e906755e6",
|
||||
@ -209,17 +211,27 @@
|
||||
"obsidian-git:Open Git source control": false
|
||||
}
|
||||
},
|
||||
"active": "9e64b92c11a37bbf",
|
||||
"active": "b7ab4945f4ef1b76",
|
||||
"lastOpenFiles": [
|
||||
"Kane-Dynamics-Theory-Applications.pdf",
|
||||
"力学书籍/Kane-Dynamics-Theory-Applications/auto/Kane-Dynamics-Theory-Applications_spans.pdf",
|
||||
"conflict-files-obsidian-git.md",
|
||||
"力学书籍/Kane-Dynamics-Theory-Applications/auto/Kane-Dynamics-Theory-Applications_origin.pdf",
|
||||
"多体求解器debug/images/Pasted image 20250110111923.png",
|
||||
"多体求解器debug/多体+水动 platform+tower debug.md",
|
||||
"多体求解器debug/多体+气动 转速 debug.md",
|
||||
"多体求解器debug/images",
|
||||
"多体求解器debug",
|
||||
"多体+耦合求解器/images/Pasted image 20250110135444.png",
|
||||
"多体+耦合求解器/images/Pasted image 20250110135219.png",
|
||||
"多体+耦合求解器/数据结构讨论.md",
|
||||
"多体+耦合求解器/images",
|
||||
"多体+耦合求解器",
|
||||
"周报/周报64-郭翼泽.docx",
|
||||
"周报",
|
||||
"力学书籍/Kane-Dynamics-Theory-Applications/auto/Kane-Dynamics-Theory-Applications_spans.pdf",
|
||||
"力学书籍/Kane-Dynamics-Theory-Applications/auto/Kane-Dynamics-Theory-Applications.md",
|
||||
"力学书籍/Kane-Dynamics-Theory-Applications/auto/Kane-Dynamics-Theory-Applications_layout.pdf",
|
||||
"力学书籍/材料力学2(第6版) (刘鸿文) (Z-Library)/auto/材料力学2(第6版) (刘鸿文) (Z-Library).md",
|
||||
"力学书籍/Kane-Dynamics-Theory-Applications/auto/Kane-Dynamics-Theory-Applications_content_list.json",
|
||||
"力学书籍/Kane-Dynamics-Theory-Applications/auto/Kane-Dynamics-Theory-Applications_model.json",
|
||||
"力学书籍/Kane-Dynamics-Theory-Applications/auto/Kane-Dynamics-Theory-Applications_middle.json",
|
||||
"力学书籍/Kane-Dynamics-Theory-Applications/auto/images/da632813354686cb57b570f69d334183e9018eafb95a19cbe3fd55d0e8bb481a.jpg",
|
||||
"力学书籍/Kane-Dynamics-Theory-Applications/auto/images/a3e4521d0f80431b537db2b80620c9d1e625b2ca2cb215d9929b7356a3303d90.jpg",
|
||||
"力学书籍/Kane-Dynamics-Theory-Applications/auto/images/419c1dd388385f7daf107d3ddef6a39f6135bbe3387e9e2931d2e3f3280d9824.jpg",
|
||||
@ -227,18 +239,11 @@
|
||||
"力学书籍/Kane-Dynamics-Theory-Applications/auto/images/3281add6fc27aaf1f2952613f1f51410d2a2b17d4ed424e4aa8d248e0f77399b.jpg",
|
||||
"力学书籍/Kane-Dynamics-Theory-Applications/auto/images/d2518ae84e950e1c2f93eedaf67b3295a19ce0c9b95eb3505deee2e804a67624.jpg",
|
||||
"力学书籍/Kane-Dynamics-Theory-Applications/auto/images/fdc5aa0a435ca87cf186e6a0cbaf8daa8692d94131d2937f3333d9308bbd941e.jpg",
|
||||
"力学书籍/Kane-Dynamics-Theory-Applications/auto/images/954698f939012b0eafaa378e7bf1302f3d42f94cd8ce38706998281ebece98db.jpg",
|
||||
"力学书籍/Kane-Dynamics-Theory-Applications/auto/images/98fd8ce0a4641fc6e6c6f7633c3910d60818a29e68f8ca262940115f9067f14f.jpg",
|
||||
"力学书籍/Kane-Dynamics-Theory-Applications/auto/images/a7a61c47119d06abb54a704413622b60612b0054867a9e0da45bbabcbde35800.jpg",
|
||||
"力学书籍/理论力学Ⅰ(第8版) (哈尔滨工业大学理论力学教研室) (Z-Library)/auto/理论力学Ⅰ(第8版) (哈尔滨工业大学理论力学教研室) (Z-Library).pdf",
|
||||
"力学书籍/理论力学(II) (哈尔滨工业大学理论力学教研室 编) (Z-Library)/auto/理论力学(II) (哈尔滨工业大学理论力学教研室 编) (Z-Library).pdf",
|
||||
"力学书籍/结构力学Ⅰ(基础教程) (龙驭球、包世华、袁驷) (Z-Library)/auto/结构力学Ⅰ(基础教程) (龙驭球、包世华、袁驷) (Z-Library).pdf",
|
||||
"力学书籍/材料力学I(第6版) (刘鸿文) (Z-Library)/auto/材料力学I(第6版) (刘鸿文) (Z-Library).md",
|
||||
"力学书籍/结构动力学 (R. 克拉夫,J. 彭津) (Z-Library)/auto/结构动力学 (R. 克拉夫,J. 彭津) (Z-Library).md",
|
||||
"力学书籍/理论力学Ⅰ(第8版) (哈尔滨工业大学理论力学教研室) (Z-Library)/auto/理论力学Ⅰ(第8版) (哈尔滨工业大学理论力学教研室) (Z-Library).md",
|
||||
"力学书籍/结构力学Ⅰ(基础教程) (龙驭球、包世华、袁驷) (Z-Library)/auto/结构力学Ⅰ(基础教程) (龙驭球、包世华、袁驷) (Z-Library).md",
|
||||
"力学书籍/理论力学(II) (哈尔滨工业大学理论力学教研室 编) (Z-Library)/auto/理论力学(II) (哈尔滨工业大学理论力学教研室 编) (Z-Library).md",
|
||||
"conflict-files-obsidian-git.md",
|
||||
"Ai/ollama 设置模型上下文大小.md",
|
||||
"Ai/deepSeek Api Key.md",
|
||||
"多体求解器编写/多体+水动 platform+tower debug.md"
|
||||
|
BIN
周报/周报64-郭翼泽.docx
Normal file
BIN
周报/周报64-郭翼泽.docx
Normal file
Binary file not shown.
BIN
多体+耦合求解器/images/Pasted image 20250110135219.png
Normal file
BIN
多体+耦合求解器/images/Pasted image 20250110135219.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 14 KiB |
BIN
多体+耦合求解器/images/Pasted image 20250110135444.png
Normal file
BIN
多体+耦合求解器/images/Pasted image 20250110135444.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 13 KiB |
96
多体+耦合求解器/数据结构讨论.md
Normal file
96
多体+耦合求解器/数据结构讨论.md
Normal 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));
|
||||
```
|
BIN
多体求解器debug/images/Pasted image 20250110111923.png
Normal file
BIN
多体求解器debug/images/Pasted image 20250110111923.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 58 KiB |
4
多体求解器debug/多体+气动 转速 debug.md
Normal file
4
多体求解器debug/多体+气动 转速 debug.md
Normal file
@ -0,0 +1,4 @@
|
||||
|
||||
# 问题
|
||||
转速在30s之后一直掉
|
||||
![[Pasted image 20250110111923.png]]
|
Loading…
x
Reference in New Issue
Block a user