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 8 of 8
Search took 0.00 seconds.
Search: Posts Made By: mAlletto
Forum: OpenFOAM Programming & Development October 30, 2018, 11:06
Replies: 28
Views: 2,825
Posted By mAlletto
Maybe forAll (U , Celli) ...

Maybe
forAll (U , Celli)

U[Celli].component(0)
Forum: OpenFOAM Programming & Development October 30, 2018, 09:13
Replies: 28
Views: 2,825
Posted By mAlletto
What you are doing ist comparing a volScalarField...

What you are doing ist comparing a volScalarField with a float.

You should write

forAll(U.component(0),Celli)
{
If (U.component(0)[Celli] < 0)
{Do somethine}
Else
{Do something else}
Forum: OpenFOAM Programming & Development October 30, 2018, 07:49
Replies: 28
Views: 2,825
Posted By mAlletto
Form the short code you sent i presume you want...

Form the short code you sent i presume you want to compare a volumetric viele with a float. But hard to say without and code.
Forum: OpenFOAM Programming & Development October 29, 2018, 04:38
Replies: 28
Views: 2,825
Posted By mAlletto
Just one question out of curiosity: What...

Just one question out of curiosity:

What are the applications you are doing the modeling?
Forum: OpenFOAM Programming & Development October 29, 2018, 02:41
Replies: 28
Views: 2,825
Posted By mAlletto
In some manner. You should really write down the...

In some manner. You should really write down the derivation of the transport equation for the turbulent kinetic energy equation considering buoyancy to understand if everything is correct (see e.g....
Forum: OpenFOAM Programming & Development October 27, 2018, 13:39
Replies: 28
Views: 2,825
Posted By mAlletto
A ok I got it. Ok the beta in the momentum...

A ok I got it. Ok the beta in the momentum equtions comes from the Boussinesq Approximation, i.e. you linearize the density around a a given value and expand it as a function of temperature. The same...
Forum: OpenFOAM Programming & Development October 27, 2018, 11:36
Replies: 28
Views: 2,825
Posted By mAlletto
Which scalar are you interested in? The term...

Which scalar are you interested in? The term accounting for the buoyancy production in the k equation comes into the equation when the buoyancy is present also in the momentum equation. If one...
Forum: OpenFOAM Programming & Development October 26, 2018, 05:04
Replies: 28
Views: 2,825
Posted By mAlletto
const volScalarField& S_ =...

const volScalarField& S_ = U_.mesh().lookupObject<volScalarField>("S");

if you have defined the scalarField somewhere you can retrieve it with the above function
Showing results 1 to 8 of 8

 
Forum Jump

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