CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums

Search Results

Register Blogs Community New Posts Updated Threads Search

Showing results 1 to 2 of 2
Search took 0.00 seconds.
Search: Posts Made By: su_junwei
Forum: OpenFOAM Running, Solving & CFD July 15, 2009, 05:49
Replies: 16
Views: 3,257
Posted By su_junwei
const volVectorField & C=mesh.C(); ...

const volVectorField & C=mesh.C();
volScalarField x=C.component(0);
volScalarField y=C.component(1);
your formulation
x/(sqr(x)+sqr(y))

Junwei
Forum: OpenFOAM Running, Solving & CFD July 10, 2009, 20:20
Replies: 16
Views: 3,257
Posted By su_junwei
you can try volScalarField ux=u.component(0); ...

you can try
volScalarField ux=u.component(0);
volScalarField uy=u.component(1);
volVectorField gradux=fvc::grad(ux);
volVectorField graduy=fvc::grad(uy);
your formulation: ...
Showing results 1 to 2 of 2

 
Forum Jump

All times are GMT -4. The time now is 21:15.