Comments (16)
re-invited @julesghub
from underworld2.
Hi Ting, I think the following line is the problem
if its == dT_maxIts - 1:
It will only fire when its == 4
, which is what your output shows.
from underworld2.
Thanks, Julian.
You are right, this coding mistake occurred when I tried to simplify the original script.
However, this 'temperature difference does not decrease with reducing step interval' issue persists even when this coding mistake is corrected. See screenshots below.
from underworld2.
The three columns of max_dT_Array in the standard output are iteration (its), dt, and dT_max, respectively.
from underworld2.
In the code every iteration is using a different initial temperature and temperatureDot. This isn't what you want right?
from underworld2.
I thought it is the same initial temperature and temperatureDot. Since I used
temperatureField.data[:] = T_old.data[:]
temperatureDotField.data[:] = Tdot_old.data[:]
to reset the temperature after each iteration.
from underworld2.
oh I see. Why don't you create fields temperature0
and temperatureDot0
for the initial conditions. Just to ensure you don't have to write over the numpy arrays.
from underworld2.
How do I create and temperatureDot0 for the initial conditions?
from underworld2.
The initial values of temperatureDot0 should always be zero. So I suggest
using temperatureDot0.data[:] = 0
in the loop.
from underworld2.
temperature reset in the while loop is changed as below:
temperatureField.data[:] = T_old.data[:]
temperatureDotField.data[:] = 0.0 #Tdot_old.data[:]
The temperature difference is as below, it does not show any dependence on dt.
At an earlier step, the temperature difference does reduce with reducing dt.
from underworld2.
Instead of doing
T_old = temperatureField.copy()
Can you make T_old a new mesh variable, i.e.
T_old = mesh.add_variable(....)
I think the copy()
is not a 'deep' copy and is potentially causing the issue.
from underworld2.
creating a new mesh variable for T_old does not make any difference. Values of the derived dT_max are exactly the same as before.
from underworld2.
Can you upload a version of the model file and I can look at it more closely. The easiest way would be to make a private github repo and invite me to it. Remember to let me know the version of the code you're using.
from underworld2.
OK, I will do that.
from underworld2.
Hi Julian, I have invited you to my temporal repository. The swarm file exceeds the 25 Mb limit, so I shared it using my net-disk. You can download it through the link in README.md. Thanks!
from underworld2.
@tingyang2004 Could you re-invite me to the repo - unfortunately the invitation expired. opps
from underworld2.
Related Issues (20)
- RuntimeError: There were left over keyword arguments. kwargs = [{'_fn_fssa': None}]
- communication between the UW2 model and the Badlands surface processes model
- UWGeodynamics velocitySurface_2D Bug HOT 1
- Coupled Evolution of Deformation, Pore Fluid Pressure, and Fluid Flow in the thrust-fold mountain belt ? HOT 4
- Uncoupled temperature and compositional field in UW Geodynamics HOT 2
- Adding two plasticities to one material HOT 3
- SystemError: <built-in function SystemLinearEquations_UpdateSolutionOntoNodes> returned a result with an exception set HOT 1
- Parallel computing and An installation problem (MpiRun) HOT 4
- 'surface' integration HOT 2
- Model.mesh.deform_mesh() error with mpirun. Possibly two nodes are in an identical location.
- Installation error HOT 11
- Compressible mantle convection with tala approximation HOT 1
- A question about strata results from coupled model HOT 3
- May I ask how is the second-order invariant of strain rate(function: fn.tensor.second_invariant)in underworld2.13 calculated?
- Question about using mesh.specialSets['MinI_VertexSet'] as a boundary index with parallel run
- Converging issue for 3D subduction model with oblique trench shape. HOT 1
- May I ask how to use Underworld2 modeling the melt-related process?
- An issue when using trapezoid mesh HOT 1
- issue with surface processes
- To find the example to generate collision_wedge.gif HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from underworld2.