phasicFlow icon indicating copy to clipboard operation
phasicFlow copied to clipboard

Import stl geometry by a given scale factor.

Open wanqing0421 opened this issue 6 months ago • 3 comments

Hi,

    Can we import stl geometry by a given scale factor in geometryDict?

wanqing0421 avatar Apr 21 '25 10:04 wanqing0421

Yes. It is a good option. Do we also need to define a transform vector to transform it if needed? For example, the dictionary can be changed in this way, and we make them optional, so, previous case setup files do not break.

body
    { 
        type      stlWall;                       
        
        file     body.stl;                       
        
        material  wallMat;                
        
        scale        0.1;   // default is 1.0
        
        // this transfers points 10 cm in positive x direction 
        transform  (0.1 0 0 );   // default is (0 0 0) 

        motion     rotAxis;                 

    }

PhasicFlow avatar Apr 21 '25 12:04 PhasicFlow

Good, we also need transform and scale

wanqing0421 avatar Apr 22 '25 01:04 wanqing0421

I guess we already covered all the parts. Please re-test this new part and see if actually works as expected and let me know. test all of scale, transform and scaleFirst.

PhasicFlow avatar May 03 '25 03:05 PhasicFlow

Thanks, the scale, transform and scaleFirst features can use now.

wanqing0421 avatar Jun 09 '25 13:06 wanqing0421