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

Search Results

Register Blogs Members List Search Today's Posts Mark Forums Read

Showing results 1 to 5 of 5
Search took 0.00 seconds.
Search: Posts Made By: srinath
Forum: OpenFOAM Programming & Development August 13, 2008, 02:29
Replies: 16
Views: 17,647
Posted By srinath
Issue is resolved. Used the

Issue is resolved.
Used the following command to replace scalar fields in a volVectorField
newphi_rhoU.replace(0,newphi_rhoU1);

Srinath
Forum: OpenFOAM Programming & Development August 10, 2008, 01:10
Replies: 16
Views: 17,647
Posted By srinath
Nadine Since i didn't know

Nadine

Since i didn't know how to assemble a 5 component pseudoVector in OpenFoam, i explicitly carried out the multiplication A*B
Right now, i have C(1), C(2)....C(5).
If i could group...
Forum: OpenFOAM Programming & Development August 9, 2008, 08:37
Replies: 16
Views: 17,647
Posted By srinath
Dear Luca Suppose i have a

Dear Luca

Suppose i have a matrix A times vector B
C= A*B
A is 5*5, B is 5*1
i want to group rhoU from the central 3 components
Any ideas?

Thanks
Srinath
Forum: OpenFOAM Programming & Development August 9, 2008, 07:10
Replies: 16
Views: 17,647
Posted By srinath
Thanks Kieran That worked f

Thanks Kieran

That worked for the expression

vx= U.component(0)

But i get a runtime error if i do this

volVectorField newphiU = phiU
newphiU.componet(0) = f(scalars).
Forum: OpenFOAM Programming & Development August 8, 2008, 04:03
Replies: 16
Views: 17,647
Posted By srinath
Obtaining velocity components

Hello

This is rather trivial, but for some reason i can't seem to get this line to work.
volScalarField vx = U.x();
The compilation error i get is
error: 'struct Foam::volVectorField'...
Showing results 1 to 5 of 5

 
Forum Jump

All times are GMT -4. The time now is 18:40.