Re: [Nektar-users] Nektar read nek5000 binary field
Hi David, It works, thank you very much! Cheers, Wei
On 10 May 2019, at 11:33, Moxey, David <D.Moxey@exeter.ac.uk> wrote:
Hi Wei,
The solver restart expects a Nektar++ fld file as input. Prior to the simulation you should run FieldConvert on your Nek5000 file to produce a valid fld file, e.g.:
FieldConvert cubic0.f00025:fld5000 cubic0.fld
You should then be able to use this to restart the simulation.
Cheers,
Dave
On 10 May 2019, at 11:24, WEI HE <mewhe@ust.hk> wrote:
Dear nektar users,
I am exploring my 3D dns data computed by nek5000, and hoping it would be used for stability analysis. I found nektar++ could read nek5000 binary field directly in the technical document http://doc.nektar.info/latest/class_nektar_1_1_field_utils_1_1_input_nek5000...
I run FieldConvert -l, and it gives
Available classes: Input: bse: Reads stability base-flow file. Input: chk: Reads checkpoint file. Input: dat: Reads Tecplot dat file for FE block triangular format. Input: fld: Reads Fld file. Input: fld5000: Reads Nek5000 field file. ................. ..................
I firstly generate a cubic.xml file and then build a new nek5000 dns setup with exactly same coordinates. Then run it in nek5000 to obtain a sequence cubic0.f00001,.... cubic0.f00025 fields.
Next, I defined the binary nek5000 data ( e.g. cubic0.f00025) as the restart file. When I run nektar, it gave an error, as below
IncNavierStokesSolver cubic.xml ======================================================================= EquationType: UnsteadyNavierStokes Session Name: cubic2 Spatial Dim.: 3 Max SEM Exp. Order: 6 Expansion Dim.: 3 Projection Type: Continuous Galerkin Advection: explicit Diffusion: implicit Time Step: 0.01 No. of Steps: 5 Checkpoints (steps): 1 Integration Type: IMEXOrder2 Splitting Scheme: Velocity correction (strong press. form) =======================================================================
Fatal : Level 0 assertion violation Unable to load file: cubic0.f00025 Reason: Error document empty. Position: Line 0, Column 0
Did I miss something? or can someone help me? thanks!
regards, Wei
Cheers, Wei _______________________________________________ Nektar-users mailing list Nektar-users@imperial.ac.uk https://mailman.ic.ac.uk/mailman/listinfo/nektar-users
-- Dr David Moxey, PhD MMath MIMA FHEA Senior Lecturer in Engineering d.moxey@exeter.ac.uk | tel: 01392 724764 | web: davidmoxey.uk
Room K1, Innovation Centre, University of Exeter, Exeter, EX4 4RN, UK.
participants (1)
-
WEI HE