摘要: vs无法定义程序入口 原因:没有连接到dll动态链接库 可能原因:环境变量冲突,比如想链接nglib.dll库,环境变量中添加了2个bin目录,而且想要链接的bin目录在下面 解决方法:调整bin目录的位置,让想要链接的bin目录在最上面 阅读全文
posted @ 2023-08-14 10:01 摩天仑 阅读(6) 评论(0) 推荐(0) 编辑
摘要: # 安装NetGen6.1 ## 1、下载 https://github.com/NGSolve/ngsolve/releases/download/v6.2.2008/NGSolve-6.2.2008-win64.msi ## 2、配置 与NetGen6.1版本匹配的python3.7,安装pyt 阅读全文
posted @ 2023-08-11 20:20 摩天仑 阅读(76) 评论(0) 推荐(0) 编辑
摘要: 注册表具有唯一标识,用于管理多个日志 ```c++ // Copyright(c) 2015-present, Gabi Melman & spdlog contributors. // Distributed under the MIT License (http://opensource.org 阅读全文
posted @ 2023-07-30 23:50 摩天仑 阅读(146) 评论(0) 推荐(0) 编辑
摘要: 计算流程如下: ![image](https://img2023.cnblogs.com/blog/3059241/202307/3059241-20230725160145013-1711117948.png) 代码如下: ```c++ Foam::fv::gaussGrad::gradf ( c 阅读全文
posted @ 2023-07-25 16:03 摩天仑 阅读(350) 评论(0) 推荐(0) 编辑
摘要: ## 求解流程 ![image](https://img2023.cnblogs.com/blog/3059241/202307/3059241-20230725105305278-904207275.png) 在高斯格林公式中,需要用到phi_f,以下是求解phi_f1的步骤(这里只给出phi_f 阅读全文
posted @ 2023-07-25 10:58 摩天仑 阅读(57) 评论(0) 推荐(0) 编辑
摘要: 将f'作为CF(及单元C质心与周围单元质心)的中点 计算流程如下 ![image](https://img2023.cnblogs.com/blog/3059241/202307/3059241-20230725095718319-1624811196.png) 代码实现 ```python # 非 阅读全文
posted @ 2023-07-25 09:58 摩天仑 阅读(90) 评论(0) 推荐(0) 编辑
摘要: ![image](https://img2023.cnblogs.com/blog/3059241/202307/3059241-20230724164759538-1236885500.png) 本案例在计算非结构网格的梯度时,不使用修正方法。将直接使用f'处的∅值 计算流程 ![image](h 阅读全文
posted @ 2023-07-24 16:59 摩天仑 阅读(113) 评论(0) 推荐(0) 编辑
摘要: 使用VTK中的vtkAxesActor和vtkOrientationMarkerWidget在左下角显示坐标轴,捣鼓了一天,才整成。 ``` renWin_ = vtkSmartPointer::New(); this->SetRenderWindow(renWin_); renderer_ = v 阅读全文
posted @ 2023-07-23 21:31 摩天仑 阅读(797) 评论(0) 推荐(0) 编辑
摘要: ```c++ #include #include #include unsigned int random_char() { std::random_device rd; std::mt19937 gen(rd()); std::uniform_int_distribution dis(0, 255 阅读全文
posted @ 2023-07-18 21:46 摩天仑 阅读(404) 评论(0) 推荐(0) 编辑
摘要: # 1、判断是否为根节点 ```c++ QModelIndex currentIndex = treeView->currentIndex(); QStandardItem* currentItem = model->itemFromIndex(currentIndex); // 如果是根目录,是否 阅读全文
posted @ 2023-07-15 19:36 摩天仑 阅读(184) 评论(0) 推荐(0) 编辑