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 17 of 17
Search took 0.00 seconds.
Search: Posts Made By: clapointe
Forum: OpenFOAM Programming & Development November 12, 2018, 13:22
Replies: 37
Views: 2,838
Posted By clapointe
Guess there are many ways to Rome -- glad you...

Guess there are many ways to Rome -- glad you figured out another solution.

Caelan
Forum: OpenFOAM Programming & Development November 11, 2018, 13:56
Replies: 37
Views: 2,838
Posted By clapointe
Alright -- not sure why domainIntegrate wasn't...

Alright -- not sure why domainIntegrate wasn't working for you, but I think I found another solution. I replicated the error you got related to compilation of

gSum(alpha*mesh.V()

So, I looked...
Forum: OpenFOAM Programming & Development November 10, 2018, 11:41
Replies: 37
Views: 2,838
Posted By clapointe
A few basic questions, then. Have you inspected...

A few basic questions, then. Have you inspected alpha visually (eg in paraview)? Does it match what you compute with the function object? I don't know offhand why you're getting the error -- I've...
Forum: OpenFOAM Programming & Development November 9, 2018, 18:27
Replies: 37
Views: 2,838
Posted By clapointe
I'm not sure why it's not working, but if you...

I'm not sure why it's not working, but if you know the correct value -- how are you calculating it? How do you know that the calculated value is wrong?

Caelan
Forum: OpenFOAM Programming & Development November 7, 2018, 15:55
Replies: 37
Views: 2,838
Posted By clapointe
If you use Tsol as a dimensionedScalar you should...

If you use Tsol as a dimensionedScalar you should not need it in createFields (defined as a volScalarField that must be read). If it is a volScalarField like alpha then you can just use something...
Forum: OpenFOAM Programming & Development November 7, 2018, 15:09
Replies: 37
Views: 2,838
Posted By clapointe
Oh I see -- it looks to be complaining about ...

Oh I see -- it looks to be complaining about

mesh.nCells().

Looks like it actually is a label instead of a scalar. Oops.

Realizing that you've already defined alpha as a volScalarField :
...
Forum: OpenFOAM Programming & Development November 7, 2018, 14:50
Replies: 37
Views: 2,838
Posted By clapointe
Is it a volScalarField? I've got another idea --...

Is it a volScalarField? I've got another idea -- lets try using an OF function :

scalar alfAvg = (fvc::domainIntegrate(alpha)/mesh.nCells()).value()

See eg :...
Forum: OpenFOAM Programming & Development November 7, 2018, 14:31
Replies: 37
Views: 2,838
Posted By clapointe
How do you create alpha? That will affect how we...

How do you create alpha? That will affect how we reference/use it.

Caelan
Forum: OpenFOAM Programming & Development November 7, 2018, 14:03
Replies: 37
Views: 2,838
Posted By clapointe
Did you recompile when you added the info lines?...

Did you recompile when you added the info lines? Your alfAvg is not updating bc you have competing things -- one volScalarField (declared in createFields.H) that is not getting updated. Then the...
Forum: OpenFOAM Programming & Development November 7, 2018, 10:40
Replies: 37
Views: 2,838
Posted By clapointe
Like you said, this means that alfAvg is not...

Like you said, this means that alfAvg is not being updated. Where did you place the alfAvg code? And do you declare it in createFields?

An easy way to see values is as follows :



//see...
Forum: OpenFOAM Programming & Development November 6, 2018, 16:03
Replies: 37
Views: 2,838
Posted By clapointe
Sorry for the confusion -- I didn't realize you'd...

Sorry for the confusion -- I didn't realize you'd created a volScalarField named Tsol. So, you don't need "dimensionedScalar" before Tsol in Teqn.H. ...unless Ts and Tl volScalarFields, which it...
Forum: OpenFOAM Programming & Development November 6, 2018, 14:32
Replies: 37
Views: 2,838
Posted By clapointe
Much clearer, thanks. I see now where Tsol is...

Much clearer, thanks. I see now where Tsol is going. I'd recommend putting the code to calculate Tsol inside Teqn.H. Then creating a volScalarField (or uniformDimensionedField) of Tsol (name it...
Forum: OpenFOAM Programming & Development November 6, 2018, 13:59
Replies: 37
Views: 2,838
Posted By clapointe
For future reference, "code tags" are used to...

For future reference, "code tags" are used to isolate chunks of code within a comment,

like this

The # button will insert them as you create a comment, and you place your code in between them....
Forum: OpenFOAM Programming & Development November 6, 2018, 13:19
Replies: 37
Views: 2,838
Posted By clapointe
It is incredibly hard to follow what you've done...

It is incredibly hard to follow what you've done without the code tags/ providing more code (eg the Teqn). Also providing output/ error from a log file helps. Additionally, info statements are...
Forum: OpenFOAM Programming & Development November 5, 2018, 13:46
Replies: 37
Views: 2,838
Posted By clapointe
I see. So using the function object here can be...

I see. So using the function object here can be thought of doing something "on top" of the base solver -- it doesn't know to communicate with the rest of the solver (ie both ways -- it is a one way...
Forum: OpenFOAM Programming & Development November 5, 2018, 12:26
Replies: 37
Views: 2,838
Posted By clapointe
Ok, I think I'm getting it. My first thought is...

Ok, I think I'm getting it. My first thought is this : creating a field or doing field manipulation in createFields will only happen once because createFields is only called once at the beginning to...
Forum: OpenFOAM Programming & Development November 4, 2018, 16:24
Replies: 37
Views: 2,838
Posted By clapointe
We're going to need some more information to help...

We're going to need some more information to help you. What solver/application is this? What code do you already have? How do you want to use the new field that you've created?

Caelan
Showing results 1 to 17 of 17

 
Forum Jump

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