怎样在waves2Foam中增加新的自定义波浪类型?



  • 如题,多谢!



  • 本人已经将代码部分写好并重新编译了waves2Foam库,但是在算例中,运行setWaveField这一步时,还是会提示:

    --> FOAM FATAL ERROR: 
    Unknown wave theory type freakWave
    
    Valid wave theories types are :
    
    14
    (
    stokesFirstStanding
    cnoidalFirst
    combinedWaves
    irregular
    bichromaticSecond
    bichromaticFirst
    streamFunction
    solitaryFirst
    stokesSecondModulation
    externalSource
    stokesFirst
    stokesFifth
    stokesSecond
    potentialCurrent
    )
    

    请问该如何处理?谢谢!



  • 把你的新库通过controlDict挂载一下,在controlDict里面添加

    libs 
        ( 
            "libnew1.so" 
            "libnew2.so" 
        );
    

Log in to reply