[swash-users] Restrained floating object analysis with SWASH
Brought to you by:
mzijlema
|
From: Agustin S. <agu...@gm...> - 2025-11-03 16:03:51
|
Hello everyone,
I’m trying to model a floating object in SWASH using the *FLOAT*command. It
seems to work at first, it reports the water level in the first iteration,
but then it starts showing *NaN* values in every subsequent step.
After I define the INPGRID DRAFT /READINP DRAFT and run the model, the
PRINT file shows this:
* INPGRID DRAFT REG 323180. 5423030. 0. 818 750 5 5 *
* READINP DRAFT 1 'ShipDraft.float' 3 0*
* FLOAT 0.0, 1.0*
* ** Error : Data field skipped:0.0
*
* ** Error : Data field skipped:1.0 *
I can’t find the right solution. Has anyone experienced the same issue?
I’ve attached the code I’m using below
________________________________________________________________________________
MODE NONST TWOD
$
SET 0. 90. 0.01 200 3 NAUTICAL
CGRID REG 323180. 5423030. 0. 4090 3750 818 750
$
VERT 2
$
INPGRID BOTTOM REG 323180. 5423030. 0. 818 750 5 5 EXCEPTION -99
READINP BOTTOM 1.0
'GrillaSWASH_818x750_5x5m_OrientadaEste_RompeolasCota0.grd' 3 0
INPGRID POROSITY REG 323180. 5423030. 0. 818 750 5 5
READINP POROSITY 1.0 'PorosityLayer.por' 3 0
INPGRID HSTRUCT REG 323180. 5423030. 0. 818 750 5 5
READINP HSTRUCT 1.0 'HeightStructure.hei' 3 0
INPGRID PSIZE REG 323180. 5423030. 0. 818 750 5 5
READINP PSIZE 1.0 'GrainSize.siz' 3 0
INPGRID WLEV REG 323180. 5423030. 0. 1 1 4090 3750
READINP WLEV 1.0 'Nivel.wlv' 3 0
$===================================================================
$ BLOQUE FLOAT –(restrained)
$===================================================================
INPGRID DRAFT REG 323180. 5423030. 0. 818 750 5 5
READINP DRAFT 1 'ShipDraft.float' 3 0
FLOAT 0.0, 1.0
NONHYDROSTATIC BOX PRECond ILUD
$===================================================================
$ END BLOQUE FLOAT
$===================================================================
BOU SHAPE JON
BOU SIDE E CLOCKW SMOO 12. SEC CON SPECT 1. 14. 90. 4. CYCLE 3000 SEC
BOU SIDE N CLOCKW BTYPE RADIATION
BOU SIDE S CLOCKW BTYPE RADIATION
BRE 0.6 0.3
FRIC MANNING 0.019
VISC 0.
$ Implicit integration (required for FLOAT)
TIMEI METH IMPL 0.01 0.5
DISCRET UPW UMOM H BDF
DISCRET UPW WMOM H BDF
DISCRET UPW UMOM MOM V
QUANTITY HSIG dur 8 min
$************ OUTPUT REQUESTS *************************
$
FRAME 'GRILLA3' 323180. 5423030. 0. 4090 3750 818 750
TABLE 'GRILLA3' HEAD 'Grilla_sal.txt' XP YP DEPTH WATL HS OUTPUT 000000.000
60 SEC
POINT 'BOYA_GSM' 324870.48 5425365.89
TABLE 'BOYA_GSM' HEAD 'PuntoBoyaGSM.txt' XP YP TSEC DEPTH WATL OUTPUT
000000.000 0.2 SEC
$TEST 1,0
COMPUTE NONSTAT 000000.000 0.05 SEC 001000.000
STOP
|