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

Calculated Values in scalar field

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 28, 2007, 08:53
Default Hi pple http://www.cfd-online.
  #1
Member
 
O R
Join Date: Mar 2009
Posts: 50
Rep Power: 17
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


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 Off
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 11:04
how to export calculated values to a file colin Fidelity CFD 1 June 5, 2007 05:14
How have boundary values set for calculated variables olwi OpenFOAM Running, Solving & CFD 5 August 25, 2006 12:56
Putting submesh field values into field on parent mesh helmut OpenFOAM Running, Solving & CFD 2 June 20, 2006 08:31
CO Scalar Values Ted Siemens 0 February 4, 2003 21:48


All times are GMT -4. The time now is 11:56.