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: Cyp
Forum: OpenFOAM Programming & Development October 26, 2010, 05:02
Replies: 22
Views: 8,423
Posted By Cyp
Hi Herbert! Indeed I want to edit the BC for...

Hi Herbert!

Indeed I want to edit the BC for p from the BC of U (in the case of a two-phase Darcy law)
Forum: OpenFOAM Programming & Development October 25, 2010, 10:28
Replies: 22
Views: 8,423
Posted By Cyp
Hi! I succed in the compilation using...

Hi!


I succed in the compilation using this piece of code :


label patchID = mesh.boundaryMesh().findPatchID("inlet");

fixedGradientFvPatchScalarField&...
Forum: OpenFOAM Programming & Development October 18, 2010, 11:53
Replies: 22
Views: 8,423
Posted By Cyp
Hi Martin! Thank you very much for your...

Hi Martin!

Thank you very much for your answer. I am not sure to understand very well...

I tried:


label patchID = mesh.boundaryMesh().findPatchID("inlet");...
Forum: OpenFOAM Programming & Development October 14, 2010, 13:41
Replies: 22
Views: 8,423
Posted By Cyp
I think it could work with : gradUField =...

I think it could work with :


gradUField = linearInterpolate(-(inv(M)&U)+rho*g) & mesh.Sf();
Forum: OpenFOAM Programming & Development October 14, 2010, 13:14
Replies: 22
Views: 8,423
Posted By Cyp
Thank you very much Martin. It helps me much in...

Thank you very much Martin. It helps me much in the understanding !

So I changed the code as :



label patchID = mesh.boundaryMesh().findPatchID("inlet");
fixedGradientFvPatchScalarField&...
Forum: OpenFOAM Programming & Development October 14, 2010, 12:33
Replies: 22
Views: 8,423
Posted By Cyp
I have a problem of understanding: the gradient...

I have a problem of understanding: the gradient of a scalar should be a vector. So the following snippet should work:


label patchID = mesh.boundaryMesh().findPatchID("inlet");
...
Forum: OpenFOAM Programming & Development October 14, 2010, 10:26
Replies: 22
Views: 8,423
Posted By Cyp
Ok. Thank you very much. It compiles now. ...

Ok. Thank you very much. It compiles now.


But in case U is a volScalarField (a pressure field for example)? The code of Hebert should works, shouldn't it ?
Forum: OpenFOAM Programming & Development October 14, 2010, 09:28
Replies: 22
Views: 8,423
Posted By Cyp
Hi Stefan and everybody, I trying to...

Hi Stefan and everybody,

I trying to implement neumann BC with your method but I had a fail during the compilation. I have merely copy your piece of code in my main.C file and I included...
Showing results 1 to 8 of 8

 
Forum Jump

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