Ignore:
Timestamp:
May 3, 2024, 6:16:47 PM (5 months ago)
Author:
sommeria
Message:

smoothig parameter renormalised in filter_tps

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/filter_tps.m

    r1139 r1141  
    6060CentreY=reshape(CentreY,1,[]);% Y positions of subdomain centres
    6161
    62 %% smoothing parameter
    63 smoothing=Siz(1)*Siz(2)*FieldSmooth/1000;%optimum smoothing increase as the area of the subdomain (division by 1000 to reach good values with the default GUI input)
    64 
     62%% smoothing parameter: CHANGED 03 May 2024 TO GET RESULTS INDEPENDENT OF SUBDOMAINSIZE
     63%smoothing=Siz(1)*Siz(2)*FieldSmooth/1000%optimum smoothing increase as the area of the subdomain (division by 1000 to reach good values with the default GUI input)
     64smoothing=sqrt(Siz(1)*Siz(2)/SubDomainSize)*FieldSmooth;%optimum smoothing increase as the typical mesh size =sqrt(SizX*SizY/SubDomainSize)^1/2
    6565%% default output
    6666SubRange=zeros(NbCoord,2,NbSubDomain);%initialise the boundaries of subdomains
Note: See TracChangeset for help on using the changeset viewer.