CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Unsteady simulation with steady solution as initial value

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 27, 2014, 13:05
Default Unsteady simulation with steady solution as initial value
  #1
Member
 
Ye Zhang
Join Date: Dec 2009
Location: Delft,Netherland
Posts: 92
Rep Power: 16
kiddmax is on a distinguished road
Dear all

I try to simulate an unsteady case with converged steady solution as initial value. So What I did is copy the steady case as a new unsteady case, and change corresponding parameters for unsteady calculations.
In the controlDict file, I set it like this:
------------------
startFrom latestTime;

startTime 0;

stopAt endTime;

endTime .5;

deltaT 1e-4;
-----------------------



When I run pimpleFoam, it says:


-----------------------
Create time

Create mesh for time = 10000

Reading field p

Reading field U

Reading/calculating face flux field phi

AMI: Creating addressing and weights between 3724 source faces and 3724 target faces
AMI: Patch source weights min/max/average = 1.00025, 1.00025, 1.00025
AMI: Patch target weights min/max/average = 1.00025, 1.00025, 1.00025
Selecting incompressible transport model Newtonian
Selecting turbulence model type RASModel
Selecting RAS turbulence model kOmegaSST
kOmegaSSTCoeffs
{
alphaK1 0.85034;
alphaK2 1;
alphaOmega1 0.5;
alphaOmega2 0.85616;
gamma1 0.5532;
gamma2 0.4403;
beta1 0.075;
beta2 0.0828;
betaStar 0.09;
a1 0.31;
b1 1;
c1 10;
F3 false;
}

No finite volume options present


PIMPLE: no residual control data found. Calculations will employ 2 corrector loops


Starting time loop

End
-------------

No time loop happens, any guys have an idea???

Best regards,
Ye
kiddmax is offline   Reply With Quote

Old   February 27, 2014, 14:11
Default
  #2
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,930
Rep Power: 38
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
Hi,

Code:
startFrom latestTime;

startTime 0;

stopAt endTime;

endTime .5;
your endTime is 0.5 s, but

Code:
Create time

Create mesh for time = 10000
your start time is 10000.

Why don't you use mapFields -sourceTime 10000 <steady-state-case-directory> for mapping steady state solution onto your transient simulation initial time?
alexeym is offline   Reply With Quote

Old   February 27, 2014, 18:14
Default
  #3
Member
 
Ye Zhang
Join Date: Dec 2009
Location: Delft,Netherland
Posts: 92
Rep Power: 16
kiddmax is on a distinguished road
I forgot to mention, that mapField does not work for me. It gives a lot warning and get stopped. I also have a thread about that.
kiddmax is offline   Reply With Quote

Old   February 27, 2014, 18:18
Default
  #4
Member
 
Ye Zhang
Join Date: Dec 2009
Location: Delft,Netherland
Posts: 92
Rep Power: 16
kiddmax is on a distinguished road
Dear Alexey

Thank you for you reply. I got my steady state solution for 10000 iterative steps. And I both tried to set
'startTime 10000 or startTime 0', 'endTime 10000.5 or 0.5', since I want to have 0.5s transient simulation, but they do give the same output as I list.

The time loop just does not start. I do not know why...

Best regards,
Ye
kiddmax is offline   Reply With Quote

Old   February 28, 2014, 01:24
Default
  #5
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,930
Rep Power: 38
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
Hi,

by default mapFields uses

Code:
meshToMesh::interpolationMethod mapMethod =
    meshToMesh::imCellVolumeWeight;
maybe you can try other methods: direct or mapNearest and they will work? I.e. add -method option to mapFields invocation.

Also if you just copy results from steady state solution, there should be uniform subfolder (i.e. 10000/uniform) where OF stores information on time and time step. Maybe if you delete this subfolder it will do the loop?
alexeym is offline   Reply With Quote

Old   February 28, 2014, 01:58
Default
  #6
Senior Member
 
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 21
Bernhard is on a distinguished road
Quote:
Originally Posted by alexeym View Post
Why don't you use mapFields -sourceTime 10000 <steady-state-case-directory> for mapping steady state solution onto your transient simulation initial time?
Because this is quite redundant if the mesh and the boundary conditions are the same. Just do something like

$ mv 0 0.org
$ cp -r ../steadyStateCase/0 .
$ rm -r 0/uniform
Bernhard is offline   Reply With Quote

Old   February 28, 2014, 04:15
Default
  #7
Member
 
Ye Zhang
Join Date: Dec 2009
Location: Delft,Netherland
Posts: 92
Rep Power: 16
kiddmax is on a distinguished road
Dear all,

After deleting the file 10000/unform, it works well.

Thank you !

Ye
kiddmax is offline   Reply With Quote

Old   February 28, 2014, 04:55
Default
  #8
Member
 
Ye Zhang
Join Date: Dec 2009
Location: Delft,Netherland
Posts: 92
Rep Power: 16
kiddmax is on a distinguished road
Dear Alexey,

I tried other mapping methods: mapNearest, interpolate and cellPointInterpolate. I always got the same warning. I did not find the direct method you mentioned. Probably this problem comes from the interface I have (Which I use cyclicAMI boudary condition)??

Best regards
Ye
kiddmax is offline   Reply With Quote

Old   August 20, 2015, 05:12
Default
  #9
New Member
 
Join Date: May 2015
Posts: 12
Rep Power: 10
eaxyd1 is on a distinguished road
Hi Ye and all,
I tried to the method you mentioned, and it works for serial running, but I can't run in parallel, the error:

[dang-SVE14A2SGC:17212] [12] /opt/openfoam231/platforms/linux64GccDPOpt/lib/libfiniteVolume.so(_ZNK4Foam16cyclicAMIFvPatch11ma keWeightsERNS_5FieldIdEE+0x1d5) [0x7ff2692f1085]
[dang-SVE14A2SGC:17212] [13] /opt/openfoam231/platforms/linux64GccDPOpt/lib/libfiniteVolume.so(_ZNK4Foam20surfaceInterpolation 11makeWeightsEv+0x27e) [0x7ff2697889ce]
[dang-SVE14A2SGC:17212] [14] /opt/openfoam231/platforms/linux64GccDPOpt/lib/libfiniteVolume.so(_ZNK4Foam20surfaceInterpolation 7weightsEv+0x19) [0x7ff269788be9]
[dang-SVE14A2SGC:17212] [15] pisoFoam() [0x41a35b]
[dang-SVE14A2SGC:17212] [16] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0) [0x7ff266f28a40]
[dang-SVE14A2SGC:17212] [17] pisoFoam() [0x41c82b]
[dang-SVE14A2SGC:17212] *** End of error message ***
--------------------------------------------------------------------------
mpirun noticed that process rank 1 with PID 17210 on node dang-SVE14A2SGC exited on signal 8 (Floating point exception).
--------------------------------------------------------------------------

How do you solve in parallel?
Thanks a lot!
Sophie
eaxyd1 is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Velocity blows up suddenly after 30,000+ iterations lordvon OpenFOAM Running, Solving & CFD 15 October 19, 2015 13:52
Simulation seems to converge but crashes suddenly xxxx OpenFOAM 16 September 12, 2014 08:07
How to write k and epsilon before the abnormal end xiuying OpenFOAM Running, Solving & CFD 8 August 27, 2013 15:33
Upgraded from Karmic Koala 9.10 to Lucid Lynx10.04.3 bookie56 OpenFOAM Installation 8 August 13, 2011 04:03
Problems with simulating TurbFOAM barath.ezhilan OpenFOAM 13 July 16, 2009 05:55


All times are GMT -4. The time now is 03:26.