本文整理汇总了C++中dimensioned类的典型用法代码示例。如果您正苦于以下问题:C++ dimensioned类的具体用法?C++ dimensioned怎么用?C++ dimensioned使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了dimensioned类的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1: mesh
tmp<GeometricField<Type, fvPatchField, volMesh> >
steadyStateDdtScheme<Type>::fvcDdt
(
const dimensioned<Type>& dt
)
{
return tmp<GeometricField<Type, fvPatchField, volMesh> >
(
new GeometricField<Type, fvPatchField, volMesh>
(
IOobject
(
"ddt("+dt.name()+')',
mesh().time().timeName(),
mesh()
),
mesh(),
dimensioned<Type>
(
"0",
dt.dimensions()/dimTime,
pTraits<Type>::zero
)
)
);
}
开发者ID:AmaneShino,项目名称:OpenFOAM-2.0.x,代码行数:26,代码来源:steadyStateDdtScheme.C
示例2: stabilise
tmp<DimensionedField<scalar, GeoMesh> > stabilise
(
const DimensionedField<scalar, GeoMesh>& dsf,
const dimensioned<scalar>& ds
)
{
tmp<DimensionedField<scalar, GeoMesh> > tRes
(
new DimensionedField<scalar, GeoMesh>
(
IOobject
(
"stabilise(" + dsf.name() + ',' + ds.name() + ')',
dsf.instance(),
dsf.db()
),
dsf.mesh(),
dsf.dimensions() + ds.dimensions()
)
);
stabilise(tRes().getField(), dsf.getField(), ds.value());
return tRes;
}
开发者ID:Kiiree,项目名称:RapidCFD-dev,代码行数:25,代码来源:DimensionedScalarField.C
示例3:
void DimensionedField<Type, GeoMesh>::operator=
(
const dimensioned<Type>& dt
)
{
dimensions_ = dt.dimensions();
Field<Type>::operator=(dt.value());
}
开发者ID:Kiiree,项目名称:CONSELFcae-dev,代码行数:8,代码来源:DimensionedField.C
示例4: mag
dimensioned<scalar> mag(const dimensioned<Type>& dt)
{
return dimensioned<scalar>
(
"mag(" + dt.name() + ')',
dt.dimensions(),
mag(dt.value())
);
}
开发者ID:Brzous,项目名称:WindFOAM,代码行数:9,代码来源:dimensionedType.C
示例5:
void dimensioned<Type>::replace
(
const direction d,
const dimensioned<typename dimensioned<Type>::cmptType>& dc
)
{
dimensions_ = dc.dimensions();
value_.replace(d, dc.value());
}
开发者ID:Brzous,项目名称:WindFOAM,代码行数:9,代码来源:dimensionedType.C
示例6: sqr
dimensioned<typename outerProduct<Type, Type>::type>
sqr(const dimensioned<Type>& dt)
{
return dimensioned<typename outerProduct<Type, Type>::type>
(
"sqr(" + dt.name() + ')',
sqr(dt.dimensions()),
sqr(dt.value())
);
}
开发者ID:Brzous,项目名称:WindFOAM,代码行数:10,代码来源:dimensionedType.C
示例7: pow
dimensioned<typename powProduct<Type, r>::type>
pow(const dimensioned<Type>& dt, typename powProduct<Type, r>::type)
{
return dimensioned<typename powProduct<Type, r>::type>
(
"pow(" + dt.name() + ',' + name(r) + ')',
pow(dt.dimensions(), r),
pow(dt.value(), 2)
);
}
开发者ID:Brzous,项目名称:WindFOAM,代码行数:10,代码来源:dimensionedType.C
示例8: regIOobject
DimensionedField<Type, GeoMesh>::DimensionedField
(
const IOobject& io,
const Mesh& mesh,
const dimensioned<Type>& dt,
const bool checkIOFlags
)
:
regIOobject(io),
Field<Type>(GeoMesh::size(mesh), dt.value()),
mesh_(mesh),
dimensions_(dt.dimensions())
{
if (checkIOFlags)
{
readIfPresent();
}
}
开发者ID:Kiiree,项目名称:CONSELFcae-dev,代码行数:18,代码来源:DimensionedField.C
示例9: tdsf
tmp<DimensionedField<scalar, GeoMesh> > stabilise
(
const tmp<DimensionedField<scalar, GeoMesh> >& tdsf,
const dimensioned<scalar>& ds
)
{
const DimensionedField<scalar, GeoMesh>& dsf = tdsf();
tmp<DimensionedField<scalar, GeoMesh> > tRes =
reuseTmpDimensionedField<scalar, scalar, GeoMesh>::New
(
tdsf,
"stabilise(" + dsf.name() + ',' + ds.name() + ')',
dsf.dimensions() + ds.dimensions()
);
stabilise(tRes().getField(), dsf.getField(), ds.value());
reuseTmpDimensionedField<scalar, scalar, GeoMesh>::clear(tdsf);
return tRes;
}
开发者ID:Kiiree,项目名称:RapidCFD-dev,代码行数:22,代码来源:DimensionedScalarField.C
示例10:
tmp<GeometricField<Type, fvPatchField, volMesh> >
ddt
(
const dimensioned<Type> dt,
const fvMesh& mesh
)
{
return fv::ddtScheme<Type>::New
(
mesh,
mesh.ddtScheme("ddt(" + dt.name() + ')')
)().fvcDdt(dt);
}
开发者ID:Brzous,项目名称:WindFOAM,代码行数:13,代码来源:fvcDdt.C
示例11: laplacian
tmp<fvMatrix<Type> >
laplacian
(
const dimensioned<GType>& gamma,
GeometricField<Type, fvPatchField, volMesh>& vf
)
{
GeometricField<GType, fvsPatchField, surfaceMesh> Gamma
(
IOobject
(
gamma.name(),
vf.instance(),
vf.mesh(),
IOobject::NO_READ
),
vf.mesh(),
gamma
);
return fvm::laplacian(Gamma, vf);
}
开发者ID:CFMS,项目名称:foam-extend-foam-extend-3.2,代码行数:22,代码来源:fvmLaplacian.C
示例12: FatalErrorIn
dimensioned<Type> min
(
const dimensioned<Type>& dt1,
const dimensioned<Type>& dt2
)
{
if (dt1.dimensions() != dt2.dimensions())
{
FatalErrorIn("min(const dimensioned<Type>&, const dimensioned<Type>&)")
<< "dimensions of arguments are not equal"
<< abort(FatalError);
}
return dimensioned<Type>
(
"min(" + dt1.name() + ',' + dt2.name() + ')',
dt1.dimensions(),
min(dt1.value(), dt2.value())
);
}
开发者ID:Brzous,项目名称:WindFOAM,代码行数:20,代码来源:dimensionedType.C
示例13: laplacian
tmp<GeometricField<Type, fvPatchField, volMesh> >
laplacian
(
const dimensioned<GType>& gamma,
const GeometricField<Type, fvPatchField, volMesh>& vf,
const word& name
)
{
GeometricField<GType, fvsPatchField, surfaceMesh> Gamma
(
IOobject
(
gamma.name(),
vf.instance(),
vf.mesh(),
IOobject::NO_READ
),
vf.mesh(),
gamma
);
return fvc::laplacian(Gamma, vf, name);
}
开发者ID:Cescfangs,项目名称:OpenFOAM-1.7.x,代码行数:23,代码来源:fvcLaplacian.C
示例14: mesh
tmp<GeometricField<Type, fvPatchField, volMesh> >
EulerLocalDdtScheme<Type>::fvcDdt
(
const dimensioned<Type>& dt
)
{
const objectRegistry& registry = this->mesh();
// get access to the scalar beta[i]
const scalarField& beta =
registry.lookupObject<scalarField>(deltaTName_);
volScalarField rDeltaT =
1.0/(beta[0]*registry.lookupObject<volScalarField>(deltaTauName_));
IOobject ddtIOobject
(
"ddt("+dt.name()+')',
mesh().time().timeName(),
mesh()
);
if (mesh().moving())
{
tmp<GeometricField<Type, fvPatchField, volMesh> > tdtdt
(
new GeometricField<Type, fvPatchField, volMesh>
(
ddtIOobject,
mesh(),
dimensioned<Type>
(
"0",
dt.dimensions()/dimTime,
pTraits<Type>::zero
)
)
);
tdtdt().internalField() =
rDeltaT.internalField()*dt.value()*(1.0 - mesh().V0()/mesh().V());
return tdtdt;
}
else
{
return tmp<GeometricField<Type, fvPatchField, volMesh> >
(
new GeometricField<Type, fvPatchField, volMesh>
(
ddtIOobject,
mesh(),
dimensioned<Type>
(
"0",
dt.dimensions()/dimTime,
pTraits<Type>::zero
),
calculatedFvPatchField<Type>::typeName
)
);
}
}
开发者ID:Kiiree,项目名称:DensityBasedTurbo,代码行数:63,代码来源:EulerLocalDdtScheme.C
注:本文中的dimensioned类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论