Recent Posts

Pages: 1 ... 8 9 [10]
91
Solid Mechanics / [SOLVED] Error in loading ExternalSolversApplication 2
« Last post by cangelos on November 22, 2016, 03:12:45 PM »
Hi all,

I have a problem related to the previous topic: http://kratos-wiki.cimne.upc.edu/forum/index.php?topic=96.msg351#msg351

I am working on Windows 7, 64bit with python 3.5, boost 1.62, Visual Studio 2015 Update 2.

I tried to use a simple Convection Diffusion problem with GID 13.

In a first time, I tried using the GUI of kratos developper mode in GID:


and got the following error when running the simulation on GID. Where should I put the correct path to runkratos.exe on GID?


I have already KRATOS_PATH="C:\Users\cangelos\KratosInstall" in my system variables but I guess GID expects it to be under "C:\...\GID\problemtypes\kratos.gid"

I then decided to run the KratosOpenMP.py that has been created by GID for my Convection Diffusion problem in a command prompt and got the same error as the topic mentioned in the beginning:


Unlike the solution for the previous topic, I already have libblas.lib in KratosInstall/libs. However following your previous advices, I did a dependency walker and found that kratosinstall\libs\LIBGCC_S_DW2-1.DLL was x86 and not x64 as well as LIBGFORTRAN-3.DLL and LIBQUADMATH-0.DLL

This seems to be due to c:\windows\system32\KERNEL32.DLL
I don't really know how I am supposed to handle that. Any suggestion?

Also, I saw that the SuperLU folder in the ExternalSolversApplication folder may need a configuration compatible with the Windows environment, is it already handled during the kratos compilation?
Last thing, looking at the ExternalSolversApplication\externalsolvers_application.h, I noticed that, unlike in the other application where the #if !defined(KRATOS_applicationname_APPLICATION_H_INCLUDED ) \n #define ... is set to the same name as the application, there is here applicationname=ALE and not EXTERNALSOLVERS. Is is something wanted?

Thank you in advance for any help,
Best regards to all
92
Python / Re: how to use "python.exe" instead of "runkratos.exe"?
« Last post by galavi on November 18, 2016, 06:18:13 PM »
Thanks Pooyan for your help.
93
Python / Re: how to use "python.exe" instead of "runkratos.exe"?
« Last post by pooyan on November 14, 2016, 08:10:17 AM »
Meanwhile I would suggest you to add the variable you miss in your nodal data container to your python. This is a common error and gives you problem every now and then.

Bests,
94
Python / Re: how to use "python.exe" instead of "runkratos.exe"?
« Last post by galavi on November 13, 2016, 06:29:13 PM »
Thanks Pooyan!

I debugged the code in VS2015 using the debug options as you suggested and I got an error from file data_value_container.h, line 194:

#ifdef KRATOS_DEBUG
        if(OpenMPUtils::IsInParallel() != 0)
            KRATOS_ERROR << "attempting to do a GetValue for: " << rThisVariable << " unfortunately the variable is not in the database and the operations is not threadsafe (this function is being called from within a parallel region)" << std::endl;
#endif

It seems that the operation is not thread safe.

I ran the example using one thread without the debug options and the same issue (i.e. INF and NaN) happened. However, when I set "Basic Runtime checks" in ParticleMechanicsApplication to "Uninitialized variables (/RTCu)", the code ran without error and did not produce INF and NaN.

There must be some memory issues which need more investigations.

Best regards,

Vahid

95
Computational Fluid Dynamics / Re: Distance calculation
« Last post by pooyan on November 08, 2016, 05:11:49 PM »
There is another one which is
Code: [Select]
CalculateSignedDistanceTo3DConditionSkingProcess

I should merge the two of them but there are still separated for historical reason.
96
Python / Re: how to use "python.exe" instead of "runkratos.exe"?
« Last post by pooyan on November 08, 2016, 05:04:17 PM »
Basically runkratos is a simple wrapper over the python and only ensures that you are using the same version of python as you compiled the rest of the Kratos. It should not affect in other ways. Meanwhile your problem has the symptom of having a memory error. So I would encourage you to check memory leak with valgrind and/or compile with full debug using following macros in your configure:
Code: [Select]
-DDO_NOT_DEFINE_NDEBUG=ON
-DKRATOS_DEBUG=ON
 
97
Computational Fluid Dynamics / Distance calculation
« Last post by aditya on November 08, 2016, 02:12:33 PM »
Hello

If I understand correctly,

Code: [Select]
distance_calculator = CalculateSignedDistanceTo3DSkinProcess(skin_model_part, model_part)
The above will create a distance calculator which will calculate the distance (nodal/elemental) of model_part from skin_model_part. And the skin_model_part should contain surface elements from which the distance will be calculated. I want to ask if it is possible to use surface conditions instead of surface elements ?
98
Python / how to use "python.exe" instead of "runkratos.exe"?
« Last post by galavi on November 07, 2016, 10:12:45 PM »
Hi,

I am using some IDEs (under Windows) for python (for example Visual Studio or PyCharm) in order to run/debug Kratos examples. When I use these IDEs, I am not able to set "runkratos.exe" as the interpreter of the script. Therefore, I have to use "python.exe".

In some cases, using "python.exe" leads to numerical problems such as NaN or INF in the implicit solver. I do not have this type of problems, when I run the script with "runkratos.exe".

It is written in the installation part of this website that "runkratos.exe" sets some environment variables and it is recommended to use it instead of "python.exe". What variables are set by runkratos.exe? Is there any way to use "python.exe" instead of "runkratos.exe" without problems?

Thanks in advance,

Vahid
99
Kratos Core / ApplyConstantVectorValueProcess modification
« Last post by rzorrilla on October 28, 2016, 06:02:16 PM »
Dear all,

In order to match the last modifications done in the GUI, I've substituted the field "factor" to "modulus" in the ApplyConstantVectorValueProcess of the core. I just want to warn you about the inconveniences that this change might yield.

Regards,

Rubén.
100
Compilation / Re: Error when configure.bat is executed
« Last post by jaumesagues on October 26, 2016, 10:28:21 AM »
Windows and Visual Studio 2015 not Update 3
Pages: 1 ... 8 9 [10]