CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   STAR-CCM+ (https://www.cfd-online.com/Forums/star-ccm/)
-   -   rasidual in each cell, location of the cells with maximum residuals (https://www.cfd-online.com/Forums/star-ccm/126896-rasidual-each-cell-location-cells-maximum-residuals.html)

flux November 28, 2013 08:48

rasidual in each cell, location of the cells with maximum residuals
 
Hi,

is there any posibility to show me the positions of the cells, which have the highest residuals?

I couldn't find something in the manual...


THX!

Alex C. November 28, 2013 09:23

One thing you can do, is create a user-defined field function which correspond to your model.

If you are using an incompressible, then
\nabla \vec{V} = 0

Therefore, if you create a field function which is div(V), it should show values near 0 in each cell.

The value I suggest you display will not be the same as residuals, but at least it can show you what part of the domain is less precise.

You can also create field-function for momentum equations, and eventually energy and turbulence, if you want to.

azt November 28, 2013 10:48

residuals
 
Hi

There is an easier way.

If you're using the segregated solver then:

solver -> segregated flow-> check the temporary storage retained box in the expert properties window

and run for 1 iteration.

The momentum residuals will be written out to field functions.

azt

flux November 29, 2013 04:53

ok thx...

now i've got field functions with the residuals... but how can i see the distribution over the cells... a scalar scene didn't show anything...

azt November 29, 2013 07:57

stuff
 
Hi
you should be able to plot these as a scalar field.

you can createa report that gives you the max and min values. You can then create a threshold with say the top 10% and bottom 10% value and plot this.

That's how you do it.

azt

flux November 29, 2013 09:18

hm... i don't get any scalar-field plots.

i created a new scalar scene. Under displayers/Scalar 1, I added (under Parts) my fluid region. Under scalar field, i choose a Residual-field-function and nothing is happening.

It seems that this values are empty... because it does not show any Min/Max Values.

edit:

i forgot to say, that i am using a cluster... so on my desktop-pc, the values are available... is there any way to save the field functions in the .sim file?

there is another question: some residuals are negative... is there a way to get the values of residuals, which are displayed in the residual-plot?

azt November 30, 2013 04:17

stuf
 
hi

you can't save temporary storage stuff to the sim file, which is a real pain. However you can write out the scaler field to a table file, and read it in later on.

azt

flux December 2, 2013 05:33

hi, thx! can you give me a short instruction, how to write out a scalar field to a table file?

azt December 3, 2013 06:26

hi
tools -> tables -> right click -> new table -> xyz internal table

chose parts and scalars you want to export

then right click -> extract then right click export

Read this file in later and create a field function using the function InterpolatePositionTable

see help for syntax

azt

flux December 10, 2013 08:48

sorry for my late answer! i will try it, thx!

Walther August 24, 2016 18:17

Sry for this post. After I read aztīs answer I thought this option for temporary storage retained is only available for segregated and posted my question. But you can use it for coupled or turbulence solvers, too. I wanted to delete my post, but couldnt find a way to do it.


All times are GMT -4. The time now is 09:24.