Main Content

室内言语

在任意空间位置的插值应变

Description

例子

intrpStrain= interpolatestrain(structuralresults,,,,xq,,,,yq返回在指定的2-D点的插值应变值xqandyq。对于瞬态和频率响应结构模型,室内言语interpolates strain for all time- or frequency-steps, respectively.

例子

intrpStrain= interpolatestrain(structuralresults,,,,xq,,,,yq,,,,zquses the 3-D points specified inxq,,,,yq,,,,andzq

例子

intrpStrain= interpolatestrain(structuralresults,,,,querypoints使用指定的点querypoints

Examples

collapse all

Create a structural analysis model for a plane-strain problem.

structuralModel = createpde(“结构”,,,,'static-planestrain');

在模型中包括方形几何形状。绘制几何形状。

几何弗罗姆(结构模型,@squareg);PDEGPLOT(结构模型,'EdgeLabels',,,,'上')轴平等的

图包含一个轴对象。The axes object contains 5 objects of type line, text.

指定年轻的模量和泊松的比例。

结构性Properties(结构模型,'PoissonsRatio',,,,0.3,...'YoungsModulus',,,,210E3);

Specify theX-component of the enforced displacement for edge 1.

structuralBC(structuralmodel,'XDisplacement',0.001,'边缘',,,,1);

指定边缘3是固定边界。

structuralBC(structuralmodel,'约束',,,,'fixed',,,,'边缘',3);

生成网格并解决问题。

Generatemesh(结构模型);structuralResults = solve(structuralModel);

Create a grid and interpolate theX- andy-components of the normal strain to the grid.

v = linspace(-1,1,101);[x,y] = meshgrid(v);插入式=室内术(结构介质,x,y);

重塑X-component of the normal strain to the shape of the grid and plot it.

exx = reshape(intrpStrain.exx,size(X)); px = pcolor(X,Y,exx); px.EdgeColor='没有任何'; colorbar

图包含一个轴对象。轴对象包含类型表面的对象。

重塑y-component of the normal strain to the shape of the grid and plot it.

eyy = reshape(intsprain.eyy,size(y));图py = pcolor(x,y,eyy);py.edgecolor ='没有任何'; colorbar

图包含一个轴对象。轴对象包含类型表面的对象。

Solve a static structural model representing a bimetallic cable under tension, and interpolate strain on a cross-section of the cable.

Create a static structural model for solving a solid (3-D) problem.

structuralModel = createpde(“结构”,,,,'static-solid');

创建几何形状并将其包括在模型中。绘制几何形状。

gm = Multicylinder([0.01,0.015],0.05);bunstoralModel.DEMETRY = GM;PDEGPLOT(结构模型,'facelabels',,,,'上',,,,...'CellLabels',,,,'上',,,,...'facealpha',,,,0.5)

图包含一个轴对象。轴对象包含3个类型Quiver,Patch,Line的对象。

为每种金属指定年轻的模量和泊松比。

结构性Properties(结构模型,'Cell',,,,1,'YoungsModulus',110E9,...'PoissonsRatio',0.28);结构性Properties(结构模型,'Cell',,,,2,'YoungsModulus',210E9,...'PoissonsRatio',0.3);

指定面1和4是固定边界。

structuralBC(structuralmodel,'Face',,,,[1,4],'约束',,,,'fixed');

Specify the surface traction for faces 2 and 5.

structuralBoundaryLoad (structuralmodel'Face',[2,5],...'SurfaceTraction',[0; 0; 100]);

生成网格并解决问题。

Generatemesh(结构模型);structuralresults = solve(structuralmodel)
structuralresults = StaticStructuralResults with properties: Displacement: [1x1 FEStruct] Strain: [1x1 FEStruct] Stress: [1x1 FEStruct] VonMisesStress: [22281x1 double] Mesh: [1x1 FEMesh]

Define the coordinates of a midspan cross-section of the cable.

[X,Y] = meshgrid(linspace(-0.015,0.015,50)); Z = ones(size(X))*0.025;

插入应变并绘制结果。

插入式=室内术(结构介质,x,y,z);冲浪(x,y,reshape(intstrain.ezz,size(x)))

图包含一个轴对象。轴对象包含类型表面的对象。

另外,您可以使用查询点的矩阵来指定网格。

querypoints = [x(:),y(:),z(:)]';插入式=室内术(构造术,查询点);冲浪(x,y,reshape(intstrain.ezz,size(x)))

图包含一个轴对象。轴对象包含类型表面的对象。

在谐波激发下,在光束的几何中心的几何中心的应变插入。

Create a transient dynamic model for a 3-D problem.

structuralModel = createpde(“结构”,,,,“瞬态固体”);

创建一个几何形状并将其包括在模型中。绘制几何形状。

gm = multicuboid(0.06,0.005,0.01); structuralmodel.Geometry = gm; pdegplot(structuralmodel,'facelabels',,,,'上',,,,'facealpha',0.5)视图(50,20)

图包含一个轴对象。轴对象包含3个类型Quiver,Patch,Line的对象。

指定年轻的模量,泊松比和材料的质量密度。

结构性Properties(结构模型,'YoungsModulus',210E9,...'PoissonsRatio',,,,0.3,...“质量密度”,7800);

修复光束的一端。

structuralBC(structuralmodel,'Face',,,,5,'约束',,,,'fixed');

Apply a sinusoidal displacement along they-direction on the end opposite the fixed end of the beam.

structuralBC(structuralmodel,'Face',,,,3,...'ydisplacement',,,,1E-4,...'Frequency',,,,50);

Generate a mesh.

generatemesh(结构模型,'Hmax',,,,0.01);

Specify the zero initial displacement and velocity.

结构性(结构模型,'Displacement',[0; 0; 0],...'速度',[0; 0; 0]);

Solve the model.

tlist = 0:0.002:0.2; structuralresults = solve(structuralmodel,tlist);

Interpolate the strain at the geometric center of the beam.

coordsmidspan = [0; 0; 0.005];插入式=室内术(结构性冲突,坐标);

Plot the normal strain at the geometric center of the beam.

figure plot(structuralresults.SolutionTimes,intrpStrain.exx) title('x方向正常应变在梁中心'

图包含一个轴对象。带有标题X方向正常应变的轴对象包含类型线的对象。

Input Arguments

collapse all

Solution of the structural analysis problem, specified as aStaticStructuralResults,,,,TransientStructuralResults, 或者FrequencyStructuralResults目的。Createstructuralresults通过使用解决功能。

Example:structuralresults = solve(structuralmodel)

X- 坐标查询点,指定为真实数组。室内言语evaluates the strains at the 2-D coordinate points[xq(i),yq(i)]或在3-D坐标点[xq(i),yq(i),zq(i)]。所以,xq,,,,yq,,,,and (if present)zq必须具有相同数量的条目。

室内言语将查询点转换为列向量xq(:),,,,yq(:),,,,and (if present)ZQ(:)。The function returns strains as an屈服目的with the properties containing vectors of the same size as these column vectors. To ensure that the dimensions of the returned solution are consistent with the dimensions of the original query points, use the重塑功能。例如,使用intrpStrain = reshape(intrpStrain.exx,size(xq))

数据类型:double

y- 坐标查询点,指定为真实数组。室内言语evaluates the strains at the 2-D coordinate points[xq(i),yq(i)]或在3-D坐标点[xq(i),yq(i),zq(i)]。所以,xq,,,,yq,,,,and (if present)zq必须具有相同数量的条目。Internally,室内言语将the query points to the column vectoryq(:)

数据类型:double

z- 坐标查询点,指定为真实数组。室内言语evaluates the strains at the 3-D coordinate points[xq(i),yq(i),zq(i)]。所以,xq,,,,yq,,,,andzq必须具有相同数量的条目。Internally,室内言语将the query points to the column vectorZQ(:)

数据类型:double

Query points, specified as a real matrix with either two rows for 2-D geometry or three rows for 3-D geometry.室内言语评估坐标点处的应变querypoints(:,i),,,,so each column ofquerypoints完全包含一个2-D或3-D查询点。

Example:对于2D几何形状,querypoints = [0.5,0.5,0.75,0.75;1,2,0,0.5]

数据类型:double

输出参数

collapse all

查询点的压力,返回屈服目的with the properties representing spatial components of strain at the query points. For query points that are outside the geometry,intrpStrain返回。An的属性屈服对象仅读取。

在R2017b中引入