-
Rectangle
根据输入的长宽,计算Rectangle面积周长等功能,并画出在txt文件中(Rectangle
Create a class Rectangle with attributes length and width, each of which defaults to
1
a. Provide member functions that calculate the perimeter and the area of the rectangle.
b. Also provide set and get functions for the length and width attributes. The set
functions should verify that length and width are each integer numbers larger than 0
and less than 20.
c. Write draw function to display the Rectangle:
in Assignment1. )
d. Write a driver program to test class Rectangle.)
- 2012-10-24 23:54:51下载
- 积分:1
-
DosBigMath
实现1到1000位的大数运算(包括加减乘除和浮点数运算),运行环境是vs2005(1-1000, large number operations (addition, subtraction and floating-point), the operating environment is vs2005)
- 2012-05-26 21:15:29下载
- 积分:1
-
jx
说明: 矩形件排样的模拟退火算法求解
适用于矩形件的排样(Rectangular pieces of nesting of simulated annealing algorithm for nesting of rectangular parts)
- 2008-08-20 18:15:39下载
- 积分:1
-
3803
关于非线性离散系统辨识,小波包分析提取振动信号中的特征频率,有小波分析的盲信号处理。( Nonlinear discrete system identification, Wavelet packet analysis to extract vibration signal characteristic frequency, There Wavelet Analysis Blind Signal Processing.)
- 2017-05-08 17:46:22下载
- 积分:1
-
C_classical_src
平常练习的一些程序,比较基础,包括求斐波那契数、完数等等(Some of the usual practice procedures, more infrastructure, including seeking Fibonacci numbers, number, etc. End)
- 2013-11-18 21:18:19下载
- 积分:1
-
2DPE_VCPP6.0
抛物方程是由赫姆霍兹方程推导而来,在计算大区域电磁传播有较大的优势,本程序是二维的情况。(Parabolic equation is derived the Herm Holtz equation, in the calculation of large areas of electromagnetic propagation has a greater advantage, the program is a two-dimensional situation.)
- 2016-11-20 12:32:02下载
- 积分:1
-
LBM-cylinder
用LBM结合非平衡外推方法实现的圆柱绕流,柱面边界以非平衡外推方法实现。(LBM combined with the extrapolation method of achieving non-equilibrium flow around a cylinder, cylinder boundary to achieve non-equilibrium extrapolation method.)
- 2021-04-02 14:19:07下载
- 积分:1
-
Euler_DG_Quadrilateral_2D
自己写了一个二维Euler方程的间断有限元程序
上次发了一个三角形单元的程序 因为不是曲边单元 所以在圆柱后面容易形成涡
现在把程序改为曲边四边形单元了 没有涡出现
单元是8节点四边形单元 节点编号顺序是 1 5 2 6 3 7 4 8 也就是四个角点依次
是1 2 3 4 然后是边的中点编号 5 6 7 8.
时间推进采用 Runge-Kutta 方法
数值通量采用全局Lax-Friedrichs通量
仍然不能捕捉激波 因为没有做重构或者加人工粘性 等这个做出来了 再发一次。
程序没有进行优化 比如说内存的消耗没有优化 比如直边单元的边界积分仍然采
用了曲边的积分方法 增加了计算量 比如面积分、线积分都是采用的是Gauss-
Legendre-Lobatto积分 积分精度会比一般的Gauss-Legendre积分精度低一阶 等
等问题。 二维的 纯属交流性质 就没有考虑这些问题 ^_^
如果物面全部是直边 那么只要改变一个参数N 就可以获得不同的计算精度 且具
有谱精度 因为单元的节点是Gauss-Legendre-Lobatto积分点。 其实就是谱元法
(物面是曲边的情况我不清楚是不是也可以通过提高基函数的阶数 也就是增加N
来提高计算精度)(Wrote a two-dimensional Euler equations with discontinuous finite element program
Last made a triangular element of the program, not curved edge unit is so easy to form a vortex in the cylinder behind the
Program to curved edge quadrilateral element vortices appear
Unit is the order of 8-node quadrilateral element node number is 15,263,748 which is the four corners of the points in turn
Is 1234 and then the side of the midpoint of the number 5678.
Time promote the use of Runge-Kutta method
Numerical flux of the overall situation of Lax-Friedrichs, flux
Still can not capture the shock wave did not do the reconstruction or artificial viscosity do it Zaifayici.
The program is not optimized for example, memory consumption is not optimized such as straight-edge boundary integral of the unit is still mining
Integral method to increase the amount of computation such as surface integral with a curved edge, the line integral using the Gauss-
The Legendr)
- 2021-01-29 12:58:40下载
- 积分:1
-
saolei
实现扫雷功能,基于c语言实现的,能够控制输入矩阵的大小(Implement demining capabilities, based on the c language, able to control the size of the input matrix)
- 2013-06-25 14:29:31下载
- 积分:1
-
simple
流体力学SIMPLE算法(C语言编程实现)需自己设定边界条件(SIMPLE algorithm)
- 2013-09-06 19:00:42下载
- 积分:1