Forum: OpenFOAM Programming & Development
November 12, 2018, 07:03
|
Replies: 37
Views: 2,837
It was fixed this way:
scalar alfInt =...
It was fixed this way:
scalar alfInt = fvc::domainIntegrate(alpha).value()
scalar vol = gSum (mesh.V())
scalar alfAvg = alfInt/vol
now results make sense.
Thanks a lot Caelan for...
|
Forum: OpenFOAM Programming & Development
November 11, 2018, 10:39
|
Replies: 37
Views: 2,837
Yes Actually I use parafoam to visualize the...
Yes Actually I use parafoam to visualize the results.
when alpha is correct, (keeping all parameters controlled), the above formula doesn't give me the correct average value for alpha. It always...
|
Forum: OpenFOAM Programming & Development
November 10, 2018, 00:43
|
Replies: 37
Views: 2,837
Here, based on domain integrate, the calculated...
Here, based on domain integrate, the calculated value is close to zero (1e-9).
but using volFieldValue as a functionObject, the obtained alfAvg was accurate (varying smoothly from 1 to 0.8). This is...
|
Forum: OpenFOAM Programming & Development
November 9, 2018, 16:41
|
Replies: 37
Views: 2,837
Daer Caelan,
None of the above definitions...
Daer Caelan,
None of the above definitions for alfAvg give me the corrsct Volume Avarged alpha.
scalar alfAvg = fvc::domainIntegratte(alpha).value()/alpha.size()scalar
alfAvg =...
|
Forum: OpenFOAM Programming & Development
November 7, 2018, 15:39
|
Replies: 37
Views: 2,837
I think it's going to start.:)
for initial...
I think it's going to start.:)
for initial file of Tsol what do you suggest?
cannot find file "C:/PROGRA~1/BLUECF~1/ofuser-of5/run/solidif/0/Tsol"
do I need something like T ?
cheers
|
Forum: OpenFOAM Programming & Development
November 7, 2018, 15:09
|
Replies: 37
Views: 2,837
|
Forum: OpenFOAM Programming & Development
November 7, 2018, 14:57
|
Replies: 37
Views: 2,837
yes it is a volScalarField.
with the new...
yes it is a volScalarField.
with the new averageing I get this compilation error:
pimpleFoam.C:92:59: error: cannot convert 'Foam::dimensioned<double>' to 'Foam::scalar {aka double}' in...
|
Forum: OpenFOAM Programming & Development
November 7, 2018, 14:37
|
Replies: 37
Views: 2,837
|
Forum: OpenFOAM Programming & Development
November 7, 2018, 14:26
|
Replies: 37
Views: 2,837
|
Forum: OpenFOAM Programming & Development
November 7, 2018, 13:53
|
Replies: 37
Views: 2,837
|
Forum: OpenFOAM Programming & Development
November 7, 2018, 10:37
|
Replies: 37
Views: 2,837
Thanks Caelan for your help.
:)
Applying...
Thanks Caelan for your help.
:)
Applying all your comment, now I want to trace Tsol values over the the domain. basically it should be changing as alfAvg is changed as
Tsol=0.5*(Tl+Ts)*alfAvg;...
|
Forum: OpenFOAM Programming & Development
November 6, 2018, 15:33
|
Replies: 37
Views: 2,837
Applying above comments, outputs are still...
Applying above comments, outputs are still showing that Tsol is not updated. This means alfAvg is not also updated and remains equal to initial value of alfAvg.
by the way, I tried to remove...
|
Forum: OpenFOAM Programming & Development
November 6, 2018, 15:05
|
Replies: 37
Views: 2,837
Caelan:I'd recommend putting the code to...
Caelan:I'd recommend putting the code to calculate Tsol inside Teqn.H.
Gbaz: I removed it from pimplefoam.c and added it to TEqn as this:
dimensionedScalar Tsol=0.5*(Tl+Ts)*pow(alfAvg,10);...
|
Forum: OpenFOAM Programming & Development
November 6, 2018, 14:50
|
Replies: 37
Views: 2,837
|
Forum: OpenFOAM Programming & Development
November 6, 2018, 14:27
|
Replies: 37
Views: 2,837
|
Forum: OpenFOAM Programming & Development
November 6, 2018, 13:49
|
Replies: 37
Views: 2,837
|
Forum: OpenFOAM Programming & Development
November 6, 2018, 13:14
|
Replies: 37
Views: 2,837
Dear Caelan,
Thanks to your post, I could...
Dear Caelan,
Thanks to your post, I could modified the code. However, still I think the alfAvg is not engaged with other fields.
What I did is this:
for volume fraction, alfAvg, I removed...
|
Forum: OpenFOAM Programming & Development
November 5, 2018, 13:36
|
Replies: 37
Views: 2,837
I think you are absolutely right.
what I...
I think you are absolutely right.
what I did in controlDict for defining the new field alfAvg is:
functions
alfAvg
{
type volFieldValue;
libs ("libfieldFunctionObjects.so");
|
Forum: OpenFOAM Programming & Development
November 5, 2018, 00:58
|
Replies: 37
Views: 2,837
Hi Caelan,
Thanks for your help.
I have...
Hi Caelan,
Thanks for your help.
I have a code based on PimpleFoam, modified for solidification. The soldification temperature (Tsol) is a function of total liquid fraction (alphAvg)....
|
Forum: OpenFOAM Programming & Development
November 4, 2018, 15:13
|
Replies: 37
Views: 2,837
|