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 3 of 3
Search took 0.00 seconds.
Search: Posts Made By: zcarral
Forum: OpenFOAM August 8, 2013, 05:27
Replies: 6
Views: 1,912
Posted By zcarral
Dear Romant, I agree that your idea is the...

Dear Romant, I agree that your idea is the solution. But I want to know if there is a more elegant form to convert a double to a volScalarField.

Dear Bernhard. FunkySetFields is a possibility. It...
Forum: OpenFOAM August 8, 2013, 02:50
Replies: 6
Views: 1,912
Posted By zcarral
I need to define the variable "source". I also...

I need to define the variable "source". I also tried this text in line 57:


57 volScalarField source;


But I have the following error:


oFoam.C:57: error: no matching function for call...
Forum: OpenFOAM August 7, 2013, 09:39
Replies: 6
Views: 1,912
Posted By zcarral
converting double to volScalarField

I need to convert a “double” variable “P” to a “volScalarField” variable “source”.

This is part of my code:


57 volScalarField source=P.value();
58 ...
Showing results 1 to 3 of 3

 
Forum Jump

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