CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Running, Solving & CFD

Calculated Values in scalar field

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

Reply
 
LinkBack Thread Tools Display Modes
Old   June 28, 2007, 07:53
Default Hi pple http://www.cfd-online.
  #1
Member
 
O R
Join Date: Mar 2009
Posts: 50
Rep Power: 8
arkangel is on a distinguished road
Hi pple

I want to solve
solve( laplacian(1,Phi) == RHS);

I am creating RHS and Phi in this manner:

volScalarField RHS
(
IOobject
(
"RHS",
runTime.timeName(),
mesh,
IOobject::READ_IF_PRESENT,
IOobject::AUTO_WRITE
),
mesh
);


how can i specify values in the RHS field, depending on coordinates or/and time. For instances:

RHS(x,y,z)=cos(x)sin(yz)*t for t> 0

Thanks

Rivera
arkangel is offline   Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Passing calculated values in parallel run wese OpenFOAM Running, Solving & CFD 6 April 3, 2008 10:04
how to export calculated values to a file colin NUMECA 1 June 5, 2007 04:14
How have boundary values set for calculated variables olwi OpenFOAM Running, Solving & CFD 5 August 25, 2006 11:56
Putting submesh field values into field on parent mesh helmut OpenFOAM Running, Solving & CFD 2 June 20, 2006 07:31
CO Scalar Values Ted CD-adapco 0 February 4, 2003 21:48


All times are GMT -4. The time now is 22:58.