Skip to content

Issue385 explicit#423

Merged
einola merged 55 commits intodevelopfrom
issue385_explicit
May 11, 2020
Merged

Issue385 explicit#423
einola merged 55 commits intodevelopfrom
issue385_explicit

Conversation

@einola
Copy link
Copy Markdown
Member

@einola einola commented Apr 14, 2020

A huge merge adding the explicit solver and different ways of solving the internal stress that I've been working on.

Can you please check if the "old" setup still works the way we expect? I haven't changed the defaults.

…extsim into issue385_explicit

Conflicts:
	model/finiteelement.cpp
…ing send and recv instead of isend and irecv is less efficient.
… solver, since the difference is just in the sigma term.
… called pseudo_recursive (because that's what it is). Also: In the recursive scheme cohesion scales like ice thickness squared.
…odel writes a set of output files called "flip" and exits.
…sion_factor for the P* of MEB-EP. It appears the appropriate value is something like 150 kPa - at least at 10 km. This needs a lot more testing and polishing.
… different branch (issue issue413_thickening).
@einola einola requested review from akorosov and tdcwilliams April 14, 2020 14:54
Copy link
Copy Markdown
Contributor

@tdcwilliams tdcwilliams left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

had a first pass, recommended some changes. Will need another look though. What did you mean by testing the "old setup"?

Comment thread model/finiteelement.cpp
Comment thread model/finiteelement.cpp
Comment thread model/finiteelement.cpp
Comment thread model/finiteelement.cpp
Comment thread model/finiteelement.cpp Outdated
Comment thread model/finiteelement.cpp
Comment thread model/finiteelement.cpp Outdated
Comment thread model/finiteelement.cpp Outdated
Comment thread model/finiteelement.cpp
// We need to update the mesh every time step
M_surface[cpt] = this->measure(M_elements[cpt],M_mesh,M_UM);
std::vector<double> const shapecoeff = this->shapeCoeff(M_elements[cpt]);
// TODO: Put the B0T code in a seperate function
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

might be a good idea. B0T is calculated in FETensors also (in a nicer way).

Comment thread model/finiteelement.cpp Outdated
@tdcwilliams
Copy link
Copy Markdown
Contributor

Hi, I guess 'old' setup is no pressure? Also what is the time step for the explicit code for a 10km mesh?

@einola
Copy link
Copy Markdown
Member Author

einola commented Apr 15, 2020 via email

einola and others added 2 commits April 27, 2020 10:19
Co-Authored-By: Timothy Williams <tdcwilliams@gmail.com>
Co-Authored-By: Timothy Williams <tdcwilliams@gmail.com>
@tdcwilliams
Copy link
Copy Markdown
Contributor

@einola, I am getting some strange results using the implicit solver with this .cfg file:

  • see
    fram.sigma2.no:/cluster/work/users/timill/nextsim-stand-alone/medium_arctic_10km/fcpaper/ec2/expt_109-no-pressure-explicit/outputs/20181101/Moorings.nc
[thermo]
diffusivity_sss=0
diffusivity_sst=0
ocean_nudge_timeS=1296000
ocean_nudge_timeT=1296000
[mesh]
filename=medium_arctic_10km.msh
partitioner-fileformat=ascii
[solver]
mat-package-type=mumps
[setup]
ice-type=cs2_smos
ocean-type=topaz_forecast
atmosphere-type=ec2
bathymetry-type=etopo
[simul]
spinup_duration=1
timestep=20
time_init=2018-11-01
duration=21 #finish 20190901
[restart]
#write_restart=true
#output_time_step=10
write_final_restart=true
write_interval_restart=true
output_interval=10
start_from_restart=true
input_path=outputs/20181101/restart
basename=final
type=extend
[output]
datetime_in_filename=true
exporter_path=outputs/20181101
[dynamics]
time_relaxation_damage=15
pressure_nu=0 #nu=0
#p_coef_type=1 #D_unit
#C_lab=6161850#.9*6.8465e+6
#C_lab=5477200#.8*6.8465e+6
#C_lab=4792550#.7*6.8465e+6
#C_lab=3423250#.5*6.8465e+6
compression_factor=6000
exponent_compression_factor=3
[damage]
clip=0.95
#[drifters]
#use_osisaf_drifters=true
#[forecast]
#true_forecast=false
#time_init_ocean_fc=2018-11-01
#time_init_atm_fc=2018-11-01
[moorings]
use_moorings=true
spacing=5
output_timestep=1
output_time_step_units=days
variables=conc
variables=thick
variables=snow
variables=damage
#variables=ridge_ratio
variables=velocity
[debugging]
log-level=debug

@einola
Copy link
Copy Markdown
Member Author

einola commented Apr 28, 2020

I've addressed all of Tim's comments now ... and made some other modifications. A first look at my test using the semi-implicit solver indicates that it still works ok. @tdcwilliams can you re-run your test?

Copy link
Copy Markdown
Contributor

@tdcwilliams tdcwilliams left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hi @einola, a few more comments this time.
Looks good code though (with the exception of calling the shape coefficients dx...).
I've launched my test of the implicit MEB so we'll see how that goes.

Comment thread model/finiteelement.cpp
Comment thread model/finiteelement.cpp
Comment thread model/finiteelement.cpp
Comment thread model/finiteelement.cpp
Comment thread model/finiteelement.cpp
Comment thread model/finiteelement.cpp
Comment thread model/finiteelement.cpp Outdated
Comment thread model/finiteelement.cpp
Comment thread model/finiteelement.cpp Outdated
Comment thread model/options.cpp Outdated
einola and others added 5 commits May 8, 2020 14:45
Copy link
Copy Markdown
Contributor

@tdcwilliams tdcwilliams left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

run looks fine now - you can merge once you've applied the suggestions you want

@einola einola merged commit 5676d32 into develop May 11, 2020
@einola einola deleted the issue385_explicit branch May 11, 2020 04:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants