1
This commit is contained in:
parent
3a42b36750
commit
bc25d467b6
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,
|
||||
|
37
.obsidian/workspace.json
vendored
37
.obsidian/workspace.json
vendored
@ -4,17 +4,21 @@
|
||||
"type": "split",
|
||||
"children": [
|
||||
{
|
||||
"id": "d936369538901ac3",
|
||||
"id": "6bfcfecbb751351a",
|
||||
"type": "tabs",
|
||||
"children": [
|
||||
{
|
||||
"id": "378d9732602280d8",
|
||||
"id": "5bdaac52da6d5967",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "empty",
|
||||
"state": {},
|
||||
"type": "markdown",
|
||||
"state": {
|
||||
"file": "多体+耦合求解器/数据结构讨论.md",
|
||||
"mode": "source",
|
||||
"source": false
|
||||
},
|
||||
"icon": "lucide-file",
|
||||
"title": "New tab"
|
||||
"title": "数据结构讨论"
|
||||
}
|
||||
}
|
||||
]
|
||||
@ -154,7 +158,7 @@
|
||||
}
|
||||
],
|
||||
"direction": "horizontal",
|
||||
"width": 508.5
|
||||
"width": 507.5
|
||||
},
|
||||
"left-ribbon": {
|
||||
"hiddenItems": {
|
||||
@ -168,8 +172,19 @@
|
||||
"obsidian-git:Open Git source control": false
|
||||
}
|
||||
},
|
||||
"active": "8080c9209794d082",
|
||||
"active": "5bdaac52da6d5967",
|
||||
"lastOpenFiles": [
|
||||
"conflict-files-obsidian-git.md",
|
||||
"多体+耦合求解器/数据结构讨论.md",
|
||||
"多体求解器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",
|
||||
"多体+耦合求解器/images",
|
||||
"多体+耦合求解器",
|
||||
"力学书籍/材料力学2(第6版) (刘鸿文) (Z-Library)/auto/材料力学2(第6版) (刘鸿文) (Z-Library).md",
|
||||
"力学书籍/理论力学Ⅰ(第8版) (哈尔滨工业大学理论力学教研室) (Z-Library)/auto/理论力学Ⅰ(第8版) (哈尔滨工业大学理论力学教研室) (Z-Library).pdf",
|
||||
"力学书籍/理论力学(II) (哈尔滨工业大学理论力学教研室 编) (Z-Library)/auto/理论力学(II) (哈尔滨工业大学理论力学教研室 编) (Z-Library).pdf",
|
||||
@ -177,9 +192,6 @@
|
||||
"力学书籍/结构动力学 (R. 克拉夫,J. 彭津) (Z-Library)/auto/结构动力学 (R. 克拉夫,J. 彭津) (Z-Library).pdf",
|
||||
"力学书籍/材料力学I(第6版) (刘鸿文) (Z-Library)/auto/材料力学I(第6版) (刘鸿文) (Z-Library).pdf",
|
||||
"力学书籍/材料力学2(第6版) (刘鸿文) (Z-Library)/auto/材料力学2(第6版) (刘鸿文) (Z-Library).pdf",
|
||||
"力学书籍/Kane-Dynamics-Theory-Applications/auto/images",
|
||||
"力学书籍/Kane-Dynamics-Theory-Applications/auto",
|
||||
"力学书籍/Kane-Dynamics-Theory-Applications",
|
||||
"力学书籍/材料力学I(第6版) (刘鸿文) (Z-Library)/auto/images/ff1557a72d403478d6fb24596686f1abeb249180449368566e710a83ffc497bd.jpg",
|
||||
"力学书籍/材料力学I(第6版) (刘鸿文) (Z-Library)/auto/images/ffcd7da1a7a78bf88616bb54a83eae6a9a10ec03e5cef069acba5dc7586961a3.jpg",
|
||||
"力学书籍/材料力学I(第6版) (刘鸿文) (Z-Library)/auto/images/ff664a3619d6f2a6eb2d135ddd4a9d196ddb1dbb13d2ab8d7c8e24199dddd0f0.jpg",
|
||||
@ -187,16 +199,11 @@
|
||||
"力学书籍/材料力学I(第6版) (刘鸿文) (Z-Library)/auto/images/ff0c08c0c8cf95d6a4fc4c595e6c7d29efd63d611c1a91183cc5bb59e6c541cb.jpg",
|
||||
"力学书籍/材料力学I(第6版) (刘鸿文) (Z-Library)/auto/images/feded7a1c5a239bc2c437608d3111115f7e202c1d434b480b8d326bc4220eea0.jpg",
|
||||
"力学书籍/材料力学I(第6版) (刘鸿文) (Z-Library)/auto/images/fe1dd464b7cb103d1b47fad9b55f5cdae00443bcb9ec2584804348a54323e523.jpg",
|
||||
"力学书籍/材料力学I(第6版) (刘鸿文) (Z-Library)/auto/images/fd06b9d578cfd037e95df624e310cbdea8080529b98ccad36003f6b774305b7b.jpg",
|
||||
"力学书籍/材料力学I(第6版) (刘鸿文) (Z-Library)/auto/images/fc8c17fac2ccc6627fd5cbf8b4b3c9ea64ed23b50ddc96288000450c34d6b26e.jpg",
|
||||
"力学书籍/材料力学I(第6版) (刘鸿文) (Z-Library)/auto/images/fc9bf58bfa5e022136eb97d44aabab8c43ad1d4a640edb86ace15cd56a5cb00f.jpg",
|
||||
"力学书籍/材料力学I(第6版) (刘鸿文) (Z-Library)/auto/材料力学I(第6版) (刘鸿文) (Z-Library)_spans.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"
|
||||
|
17
conflict-files-obsidian-git.md
Normal file
17
conflict-files-obsidian-git.md
Normal file
@ -0,0 +1,17 @@
|
||||
# Conflicts
|
||||
Please resolve them and commit them using the commands `Git: Commit all changes` followed by `Git: Push`
|
||||
(This file will automatically be deleted before commit)
|
||||
[[#Additional Instructions]] available below file list
|
||||
|
||||
- Not a file: .obsidian/workspace.json
|
||||
|
||||
# Additional Instructions
|
||||
I strongly recommend to use "Source mode" for viewing the conflicted files. For simple conflicts, in each file listed above replace every occurrence of the following text blocks with the desired text.
|
||||
|
||||
```diff
|
||||
<<<<<<< HEAD
|
||||
File changes in local repository
|
||||
=======
|
||||
File changes in remote repository
|
||||
>>>>>>> origin/main
|
||||
```
|
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]]
|
||||
``` rust
|
||||
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数组定义
|
||||
|
||||
|
||||
```rust
|
||||
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(),
|
||||
}
|
||||
}
|
||||
|
||||
```
|
||||
|
||||
|
||||
```rust
|
||||
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)),
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
```rust
|
||||
// 在代码中根据需要创建维度
|
||||
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