⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 norm_matrix.c

📁 计算一般形式弹性张量最优化TI近似的C程序 Computing the optimal TI approximation of a general elastic tensor
💻 C
字号:
/* * Copyright (c) 2005 by the Society of Exploration Geophysicists. * For more information, go to http://software.seg.org/2005/0001 . * You must read and accept usage terms at: * http://software.seg.org/disclaimer.txt before use. * * Revision history: * Original SEG version by Joe Dellinger, BP EPTG, July 2005. */#include "cmat.h"#include <math.h>/* * Calculate the Federov norm of a stiffness matrix. * (Federov, Theory of Elastic Waves in Crystals, 1968, Plenum Press, New York.) * * Input: * cc1 is an arbitrary 6x6 elastic stiffness matrix in Voigt notation. * * Return value: * Federov's 3x3x3x3 tensor norm is returned. * * Author Joe Dellinger, Amoco TTC, 19 Feb 1997. */FLT_DBLnorm_matrix_6x6 (FLT_DBL * cc1){int             ii, jj, kk, ll;double          temp1, temp2;    temp2 = 0.;    for (ii = 0; ii < 3; ii++)	for (jj = 0; jj < 3; jj++)	    for (kk = 0; kk < 3; kk++)		for (ll = 0; ll < 3; ll++)		{		    temp1 = CCT1 (ii, jj, kk, ll);		    temp2 += temp1 * temp1;		}    return (FLT_DBL) sqrt (temp2);}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -