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: mturcios777
Forum: OpenFOAM October 15, 2010, 15:53
Replies: 11
Views: 4,773
Posted By mturcios777
Arrow Try creating pRho as a copy of p, then just...

Try creating pRho as a copy of p, then just performing the rho*p calculation over all the interior cells:

forAll(pRho.mesh().cells(),celli)
{
pRho[celli]*=rho
}


Other than that, you'd...
Forum: OpenFOAM October 14, 2010, 12:30
Replies: 11
Views: 4,773
Posted By mturcios777
At first I thought foamCalc could do a...

At first I thought foamCalc could do a multiplication, but it seems it can't.

You can modify the simpleFoam code to create a new field pComp:

In createFields.H, add the following at the end:
...
Showing results 1 to 2 of 2

 
Forum Jump

All times are GMT -4. The time now is 08:32.