[Nek5000-users] mesh deformation

nek5000-users at lists.mcs.anl.gov nek5000-users at lists.mcs.anl.gov
Mon Nov 27 09:54:55 CST 2017


Thanks you. But I am sorry I was not able to follow your answer. But could you please tell me that, 
if i write like this 
n = nx1*ny1*nz1*nelv 

do i=1,n 
v = volume(i,1,1,1) 
x = xm1(i,1,1,1,) 
enddo 
the volume which gives corresponding the elements which has the position of x. 


Regars 

Sijo GEORGE 


De: "nek5000-users" <nek5000-users at lists.mcs.anl.gov> 
À: "nek5000-users" <nek5000-users at lists.mcs.anl.gov> 
Envoyé: Lundi 27 Novembre 2017 16:35:03 
Objet: Re: [Nek5000-users] mesh deformation 






Dear Sijo, 




There's no reason to have h1 uniform in each element, 

so I did not bother to do that. In the SEM we usually view 

fields as a continuum and rarely concern with element-to-element 

variations as those would then depend on the mesh itself. 

There is no hard and fast rule here, save that you probably want 

the mesh deformation to be smooth within each element. 




hth, 

Paul 



From: Nek5000-users <nek5000-users-bounces at lists.mcs.anl.gov> on behalf of nek5000-users at lists.mcs.anl.gov <nek5000-users at lists.mcs.anl.gov> 
Sent: Monday, November 27, 2017 9:17:26 AM 
To: nek5000-users 
Subject: Re: [Nek5000-users] mesh deformation 
Thanks Paul thank you very much. I could understand the things what you mentioend about the laplace equation since I have read your publication reagrding moving boundary and ALE formulation. I am gonna try it on my FSI problem with 2D single cylinder. Since its been some time I had also developed a code which pushes the most of the deformation to the outer region: Here it is: 

v = volume(1,1,1,1) 

a=glmax(v,1) 
b=glmin(v,1) 

L = 1 
do i=1,n 
vdiv = b/a 
num = 1-vidv 
denom = 1/a 
h1(i) = h1(i) + ((1- (b/a) **L ) / (( denom * v ) **L)) 
enddo 

which also works same as like you have created (I have only verified visually). But I have some questions regarding this: 
Before my doubts I have to be clear on one thing. Here I will be talking about two different elements. First one is Elements (lets say I have 1348 elements in my domain) and Second is Spectral elements (6*6*1348=48528) where nx1 = 6. 

1) Since the loop runs from 1 to n, the blending coefficient also makes h1 for all speactral elements right? 

2) In that case, my blending coefficient is uniform across a particular Element of the domain? more specifically lets say my element number is 1A and in 1A there are 36 spectral elements of different size. As per my code above, is my blending coefficient same for all the spectral elements which is inside 1A element?or is it different?(because I consider the volume of each element as "v") 

My idea was to give different h1 coefficient for each Elements and give constant h1 to spectral elements in each elements. More precisily lets sat there are 2 elements called 1A and 1B. 

1A has a h1 = 2.0 so all the spectral elements in the 1A has h1 of 2.0 

and 

1 B has h1 = 10.0 so all the spectral elements in the 1B has h1 of 10.0 

I know its a quite big email. Even though could you please correct me if I am wrong. Because gradually I am going to run a very complex problem. So I Have to be sure in these cases before starting it. 

Thanks with regards 

Sijo George 

De: "nek5000-users" <nek5000-users at lists.mcs.anl.gov> 
À: "nek5000-users" <nek5000-users at lists.mcs.anl.gov> 
Envoyé: Lundi 27 Novembre 2017 15:47:35 
Objet: Re: [Nek5000-users] mesh deformation 






Dear Sijo, 




In the ocyl2 case, the delta is based on a dimension that 

is related to the model. (Here, delta=2*D, where D=1 is 

the diameter of the cylinder.) 




Such a choice would be reasonable for all flow past a cylinder 

cases for that particular geometry, independent of the mesh 

resolution. 




The boundary-layer thickness criterion is important when there 

are multiple objects that are potentially touching. 




Keep in mind that any of these choices are moderated by the 

fact that we are simply computing a blending function that is 

the solution to the (modified) Laplace equation. It will have 

more or less the correct shape --- even the unmodified Laplace 

solution is not a terrible blending function. The modification is 

designed simply to help preserve mesh sizes near boundaries. 




I paste below a snippet of code that computes the average 

thickness of elements near the moving wall. 




Paul 







integer e,f 




nxz = nx1*nz1 

nxyz = nx1*ny1*nz1 

n = nxyz*nelv 




srfbl = 0. ! Surface area of elements in b.l. 

volbl = 0. ! Volume of elements in boundary layer 

do e=1,nelv 

do f=1,nface 

if (cbc(f,e,1).eq.'mv ') then 

srfbl = srfbl + vlsum(area(1,1,f,e),nxz ) 

volbl = volbl + vlsum(bm1 (1,1,1,e),nxyz) 

endif 

enddo 

enddo 

srfbl = glsum(srfbl,1) ! Sum over all processors 

volbl = glsum(volbl,1) 




delta = volbl / srfbl ! Avg thickness of b.l. elements 




call rone (h1,n) 

call rzero(h2,n) 

call cheap_dist(d,1,'mv ') 




deltap = 2*delta ! Protected b.l. thickness 

do i=1,n 

arg = -(d(i)/deltap)**2 

h1(i) = h1(i) + 9*exp(arg) 

enddo 













From: Nek5000-users <nek5000-users-bounces at lists.mcs.anl.gov> on behalf of nek5000-users at lists.mcs.anl.gov <nek5000-users at lists.mcs.anl.gov> 
Sent: Monday, November 27, 2017 7:52 AM 
To: nek5000-users 
Subject: [Nek5000-users] mesh deformation 
Hello Nek, 

I was trying to validate moving cylinder test cases (ocyl2.usr more specifically). I could validate it properly. Even though I have some doubts regarding the mesh motion. Mesh deformation more precisely. I have seen a function to send the deformation to far field apart from the near wall region (Laplace equation with h1 as blending coefficient).So in order to find h1 in the equation there is a parameter called delta (which is 2 in this case). I have also read a paper regarding this equation. In that paper its clearly states that it is the average thickness of the element which is close to the object. So my question is, is there anyway to calculate it automatically or easily to calculate the thickness of that particular elements from any input files? because if I change the mesh (suppose if I refine the mesh size everything will change right?) how can I find the new average thickness of the elements which is close to the object? or how can I measure the area or volume of the elements which is close to the wall. so could you please help me with this? 

Thanks with regards 

Sijo George 

_______________________________________________ 
Nek5000-users mailing list 
Nek5000-users at lists.mcs.anl.gov 
https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users 

_______________________________________________ 
Nek5000-users mailing list 
Nek5000-users at lists.mcs.anl.gov 
https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/nek5000-users/attachments/20171127/6f1109c1/attachment-0001.html>


More information about the Nek5000-users mailing list