Convection diffusion Application Global Files

From KratosWiki
Jump to: navigation, search

After installing successfully Kratos, you should have a directory's tree like this (minor changes are allowed, such as the location of the python files, etc):

/kratos
	/.svn
	/applications
	/benchmarking
	/Debug
	/external_libraries
	/kratos
	/libs
	/problemtype_generator
	/Release

Our main working directory will be our specific application's directory (to be created), in the applications subdirectory. Nevertheless, the rest of the structure is presented to indicate where are located other important files to work with Kratos.


Convection Diffusion Application Variables

The Kratos name for the variables of interest in our Convection Diffusion Application are:


DENSITY ρ
HEAT CAPACITY C
THERMAL CONDUCTIVITY κ
TEMPERATURE T
VELOCITY V
HEAT_FLUX Q
FACE_HEAT_FLUX q


The variables must be defined, created and registered in the variables.h file in the kratos\kratos\includes directory and in the variables.cpp file in the kratos\kratos\sources directory (see How_to_Add_a_variable).

In variables.h, check if the following lines are included (if not, please include them):

The files' structure for the Convection Diffusion Application

In the /Kratos/applications directory you have to create a new directory (called "convection_diffusion_application"). You have to create a set of custom directories for your application (basically /custom_conditions, /custom_elements, /custom_python, /python_scripts and /test_examples):

/Kratos
	/applications
		/convection_diffusion_application
			/custom_conditions 
			/custom_elements 
			/custom_python 
			/python_scripts 
			/test_examples 

Each of these subdirectories will contain the specific C++ or python code needed for our application. We will focus our attention in using our customised element, therefore, the other needed code will be, simply, copied from other already existing applications.

Note that if you want to use a new strategy or solver, then you have to create other typical customisation directories or files such as /custom_strategies, etc...

Personal tools
Categories