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 7 of 7
Search took 0.00 seconds.
Search: Posts Made By: bigphil
Forum: OpenFOAM Programming & Development March 22, 2016, 07:21
Replies: 26
Views: 4,469
Posted By bigphil
Hi Timucin, It seems that you are a bit...

Hi Timucin,

It seems that you are a bit confused.

Some info that might help clarify things for you:

n*n does not equal (1 0 0 1 0 1).

(1 0 0 1 0 1) is the identity tensor in symmetric...
Forum: OpenFOAM Programming & Development March 22, 2016, 05:49
Replies: 26
Views: 4,469
Posted By bigphil
"sqr" means square i.e. "sqr(n) = n*n" ...

"sqr" means square i.e. "sqr(n) = n*n"

"valueFraction = sqr(n)" means fixedValue in the "n" direction and fixedGradient in the two orthogonal directions.

Philip
Forum: OpenFOAM Programming & Development March 22, 2016, 05:34
Replies: 26
Views: 4,469
Posted By bigphil
Hi Timucin, Please see this post...

Hi Timucin,

Please see this post (http://www.cfd-online.com/Forums/openfoam-pre-processing/61989-directionmixed-mixed-bc.html#post316165).

Philip
Forum: OpenFOAM Programming & Development February 25, 2016, 12:39
Replies: 26
Views: 4,469
Posted By bigphil
Hi Timucin, Yes, this: ...

Hi Timucin,

Yes, this:

refValue()[faceI] = vector::zero;

is the same as this:

refValue()[faceI] = vector(0,0,0);
Forum: OpenFOAM Programming & Development February 25, 2016, 10:17
Replies: 26
Views: 4,469
Posted By bigphil
Timucin, Try this: // Calculate and...

Timucin,

Try this:

// Calculate and store face unit normals
const vectorField nf = patch().nf();

forAll(*this, faceI)
{
if (alpha[faceI] > 0.2)
Forum: OpenFOAM Programming & Development February 24, 2016, 15:23
Replies: 26
Views: 4,469
Posted By bigphil
Hi, You could do the following: ...

Hi,

You could do the following:

forAll(*this, faceI)
{
if (alpha[faceI] > 0.2)
{
// Set face to fixedValue in all three directions
valueFraction()[faceI] = I;
Forum: OpenFOAM Programming & Development February 15, 2016, 05:40
Replies: 26
Views: 4,469
Posted By bigphil
Hi Lokati, I'm not sure I fully follow what...

Hi Lokati,

I'm not sure I fully follow what you are trying to do, but to get your code to compile you can set the valueFraction to be a zero symmTensor:



Philip
Showing results 1 to 7 of 7

 
Forum Jump

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