Welcome![Sign In][Sign Up]
Location:
Search - L-Y方程

Search list

[AlgorithmMAIN 3-DIMENSIONAL CFD-PROGRAM

Description:

 

#//u(i,j)        x方向的速度u;或者θ方向速度
#//u(i,j)        y方向的速度v;或者径向速度ur'h\K
#//pc(i,j)       压力修正 p'[OS
#//p(i,j)        压力p-=5-+
#//p(i,j)        密度ρBk
#//p(i,j)        扩散系数γQ"G48E
#//t(i,j)        温度Tn7/bKr
#//ake(i,j)        湍流脉动能量k971E
#//dis(i,j)      动能的耗散率ε4
 
//amut(i,j)     湍动扩散系数+
//gen(i,j)      湍流能量的生成率S
//f(i,jnf)     不同的φ变量M
//lsolve(nf)   1,求解变量f(i,j,nf)  8
//lprint(nf)   1,打印变量f(i,j,nf)   ~f
//lblk(nf)     1,对变量f(i,j,nf)应用块修正b5|{@U
//mode         选择坐标系的变量. 目前只支持mode=1.
mode=1 直角坐标系(x~y)BMI
mode=2 圆柱坐标系(r~z)^pg>)
mode=3 极坐标(r~θ)   Z^r[LE
solve子程序中求解变量f(i,j,nf)的重复扫描次数 b
变量fi,j,nf)的字符性标题 |L;
 
//xl    计算区域在x方向上的宽度)?
//yl    计算区域在y方向上的宽度@ob
//l1     x方向上主控制体的网格数。也是x方向上压力节点位置的最后一个i值。
//m1   y方向上主控制体的网格数。也是y方向上压力节点位置的最后一个j值。
//dt           时间步长 △t
//第三部分网格设定的变量
//x(i)        节点位置的x
//xu(i)       主控制容积在x方向的界面位置,即速度u(i,j)所在位置
//xdif(i)     差值 x(i)-x(i-1)
 //xcv(i)      主控制容积在x方向上的宽度
//xcvs(i)     速度u(i,j)的控制容积在x方向上的宽度
//y(j)        节点位置的y
//yv(j)       主控制容积在y方向的界面位置,即速度v(i,j)所在位置
//ydif(j)     差值 y(j)-x(j-1)
//ycv(j)      主控制容积在y方向上的宽度
//ycvs(j)     速度v(i,j)的控制容积在y方向上的宽度
////r(i,j)      主网络节点的半径r
////rmn(j)      在速度v(i,j)所在处的半径r之值
////sx (j)      主网格节点位置y(j)x方向上的标尺因子
//sxmn(j)     在界面位置yv(j)x方向的尺度因子
       //上面四个变量应用于非直角坐标系的情况
//xcvi(i,j)   xcv(i) 中与u(i,j)的控制容积相覆盖的部分
//xcvi(i,j)   xcv(i) 中与u(i+1,j)的控制容积相覆盖的部分
//ycvr(j)     主控制容积垂直于x方向的面的面积
//ycvrs(j)    速度v(i,j)的控制容积垂直于x方向的面的面积
//arx(j)      x方向相垂直的控制容积的面积
//arxj(j)     arx(j)中与速度v(i,j)的控制容积相覆盖的部分
//arxjp(j)    arx(j)中与速度v(i,j+1)的控制容积相覆盖的部分
//arxjarjxp实际上对应于x方向上的ycviycvip
 
//第四部分差分方程系数设定的变量
//con(i,j)    离散方程中的常数项b,在子程序gamsor中又作为存储sc的单元
//aip(i,j)    系数ae
//aim(i,j)    系数aw
//ajp(i,j)    系数an
//ajm(i,j)    系数as
//ap(i,j)     系数ap,在在子程序gamsor中又作为存储sp的单元
//flow         穿过控制容积界面的质量流率
//diff         扩散传导性 D
//acof         DIFLOW子程序计算的量,它给出了对流与扩散作用的联合影响
 
//第五部分求解差分方程过程中的变量求解
//du(i,j)     影响u(i,j)de
//dv(i,j)     影响v(i,j)dn
//pv(j)       用于计算主网络节点i,j上的质量流率的ρvr的插值因子:计算式如下: //fvp(j)      说明同上
//fx(i)       用于计算主控制容积界面(即速度u(i,j)所在处)的密度
 
//            rhom的插值因子,计算式如下:
 
//fxm(i)      说明同上
//pt(i)pt(j) tdma中的转换系数(消元过程中)l
//qt(i)qt(j) tdma中的转换系数(消元过程中)
//第六部分 index变量
int nf;               //nf           标明不同φ变量的下标值
int nfmax;         //nfmax        设有存储单元的nf的最大值
int np;              //(nfmax)      p(i,j)实际为f(i,j,nfmax)
int nrho;           //(nfmax+1)    rho(i,j)实际为f(i,j,nfmax)
int ngam;         //(nfmax+2)    gam(i,j)实际为f(i,j,nfmax+2)n
int l2;              //l2           (l1-1)
int l3;              //l3           (l1-2)
int m2;           //m2           (m1-1)
int m3;           //m3           (m1-2) 2
int ist;                    //ist          i的第一个内节点值`
int jst;                    //jst          j的第一个内节点值
int iter;                   //iter         不稳态问题的步进计数
int last;                   //last         用户所规定的最大迭代计数
int iter1;             //iter1        一个时间点求解setup2( )的迭代次数
double time;              //time         不稳态问题中的时间t
int ipref;              //ipref        压力参考结点的i
int jpref;                //jpref        压力参考结点的j=/
 
//第七部分其它变量
double rhocon;           //rhocon       密度为常数的问题中的ρ
int lstop;                 //lstop        =1时,停止计算
double  smax;            //smax         p'方程中的质源的最大值

double  ssum;            //ssum         p'方程中的质源的代数和


Platform: | Size: 11439 | Author: tanglincn | Hits:

[SourceCodeL-Y方程Lyapunov指数的RHR计算

Description: L-Y方程Lyapunov指数的RHR计算
Platform: | Size: 67364 | Author: why_0121@163.com | Hits:

[CSharpBHcircle

Description: 数值微分(DDA)法: 设过端点P0(x0 ,y0)、P1(x1 ,y1)的直线段为L(P0 ,P1),则直线段L的斜率 L的起点P0的横坐标x0向L的终点P1的横坐标x1步进,取步长=1(个象素),用L的直线方程y=kx+b计算相应的y坐标,并取象素点(x,round(y))作为当前点的坐标。因为: yi+1 = kxi+1+b = k1xi+b+kDx = yi+kDx 所以,当Dx =1 yi+1 = yi+k。也就是说,当x每递增1,y递增k(即直线斜率)。根据这个原理,我们可以写出DDA画线算法程序。 2中点画线法 -Numerical differentiation (DDA) method: set off endpoints P0 (x0, y0), P1 (x1, y1) of the straight line for the L (P0, P1), the slope of the line segment L L abscissa x0 the starting point P0 to the L abscissa of the end of P1 x1 step, take steps = 1 (pixels), with L the linear equation y = kx+ b calculates the corresponding y coordinates, and take the pixel (x, round (y)) as the current point coordinates. As: yi+1 = kxi+1+ b = k1xi+ b+ kDx = yi+ kDx So, when Dx = 1 yi+1 = yi+ k. That is, when each increment x 1, y increases k (ie slope of the line.) According to this principle, we can write the DDA line drawing algorithm program. 2, dotted line method
Platform: | Size: 1024 | Author: 李丽 | Hits:

[matlabOptimization_Newton

Description: 设r是f(x) = 0的根,选取x0作为r初始近似值,过点(x0,f(x0))做曲线y = f(x)的切线L,L的方程为y = f(x0)+f (x0)(x-x0),求出L与x轴交点的横坐标 x1 = x0-f(x0)/f (x0),称x1为r的一次近似值。过点(x1,f(x1))做曲线y = f(x)的切线,并求该切线与x轴交点的横坐标 x2 = x1-f(x1)/f (x1),称x2为r的二次近似值。重复以上过程,得r的近似值序列,其中x(n+1)=x(n)-f(x(n))/f (x(n)),称为r的n+1次近似值-Let r is f (x) = 0 root, select the initial approximation x0 as the r, over point (x0, f (x0)) to do the curve y = f (x) the tangent L, L the equation y = f ( x0)+ f ' (x0) (x-x0), find the intersection of L and the x-axis of abscissa x1 = x0-f (x0)/f' (x0), x1 is called an approximation r. Through points (x1, f (x1)) to do the curve y = f (x) the tangent, and find the intersection of the tangent with the x-axis of abscissa x2 = x1-f (x1)/f ' (x1), x2 is called r the second approximation. Repeat the process, get an approximation of the sequence r, where x (n+1) = x (n)-f (x (n))/f ' (x (n)), as an approximation of r n+1 times
Platform: | Size: 1024 | Author: 徐默涵 | Hits:

[Other systemsMATLAB-Derivatives

Description: MATLAB求导数的方法,导数是高等数学里的一个非常重要知识,通过导数的几何意义可以去求函数的切线或者法线方程,通过导数开可以求出函数的极限-70/5000 MATLAB qiú dǎo shǔ de fāngfǎ, dǎoshù shì gāoděng shùxué lǐ de yīgè fēicháng zhòngyào zhīshì, tōngguò dǎo shǔ de jǐhé yìyì kěyǐ qù qiú hán shǔ de qiēxiàn huòzhě fǎ xiàn fāngchéng, tōngguò dǎoshù kāi kěyǐ qiú chū hán shǔ de jíxiàn MATLAB derivative method, the derivative is a very important knowledge in higher mathematics, through the derivative geometry of the geometric meaning can be used to find the function of the tangent or normal equation, through the derivative can be obtained the function limit
Platform: | Size: 2048 | Author: wtj | Hits:

CodeBus www.codebus.net